Skip to content

Commit

Permalink
Code maintenance: lint, format and build code (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Sep 14, 2024
1 parent c6e5d61 commit 21c9c8c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 21c9c8c

Please sign in to comment.