From 21c9c8ca89bd264ff9bb8e9aeb5285579604f28e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 14 Sep 2024 17:32:08 +0200 Subject: [PATCH] Code maintenance: lint, format and build code (#524) --- settings/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 => {