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:
Breno Queiroz Lima 2024-08-12 07:25:09 -03:00 committed by GitHub
parent 092d513f01
commit d7a40c8d5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)) {