diff --git a/settings/index.ts b/settings/index.ts index dbc17090..796572d2 100644 --- a/settings/index.ts +++ b/settings/index.ts @@ -186,11 +186,11 @@ const holidayModeEnabledElement = document.getElementById( const disableButton = (id: string, value = true): void => { const element = document.getElementById(id) - if (value) { - element?.classList.add('is-disabled') - return - } - element?.classList.remove('is-disabled') + if (value) { + element?.classList.add('is-disabled') + return + } + element?.classList.remove('is-disabled') } const enableButton = (id: string, value = true): void => {