mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-26 08:47:36 +08:00
fix(save custom text modal): save button not being enabled (@brenob6) (#5759)
* fix: invalid return values * add: hexToRgb test suite * test: update hexToRgb test value * add more tests * fix: save custom text button not enabled (#5692) --------- Co-authored-by: Miodec <jack@monkeytype.com>
This commit is contained in:
parent
092d513f01
commit
d7a40c8d5a
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ function updateIndicatorAndButton(): void {
|
|||
|
||||
if (!val) {
|
||||
indicator?.hide();
|
||||
$("#saveCustomTextModal button.save").addClass("disabled");
|
||||
$("#saveCustomTextModal button.save").prop("disabled", true);
|
||||
} else {
|
||||
const names = CustomText.getCustomTextNames(checkbox);
|
||||
if (names.includes(val)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue