Correct deserialize general settings method.

This commit is contained in:
Alex Tselegidis 2022-01-24 22:38:45 +01:00
parent 03010184f6
commit 5df3e63055

View file

@ -68,7 +68,6 @@ App.Pages.GeneralSettings = (function () {
if (generalSetting.name === 'company_color' && generalSetting.value !== '#ffffff') { if (generalSetting.name === 'company_color' && generalSetting.value !== '#ffffff') {
$resetCompanyColor.prop('hidden', false); $resetCompanyColor.prop('hidden', false);
return;
} }
$('[data-field="' + generalSetting.name + '"]').val(generalSetting.value); $('[data-field="' + generalSetting.name + '"]').val(generalSetting.value);
@ -146,7 +145,7 @@ App.Pages.GeneralSettings = (function () {
* Toggle the reset company color button. * Toggle the reset company color button.
*/ */
function onCompanyColorChange() { function onCompanyColorChange() {
$resetCompanyColor.prop('hidden', $companyColor.val() !== '#ffffff'); $resetCompanyColor.prop('hidden', $companyColor.val() === '#ffffff');
} }
/** /**