Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukachi committed Dec 21, 2023
1 parent 39ac9eb commit 515406a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hooks/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ export const useThemeMode = () => {
if (!themeMode) return

document.body.classList.add(THEME_CLASSES[themeMode])
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
}, [themeMode])

return { theme, setTheme: uiStore.setThemeMode }
}

0 comments on commit 515406a

Please sign in to comment.