Skip to content

Commit

Permalink
theme: ensure correct theme key
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikMatiasko committed Jul 10, 2024
1 parent 8aeaa4c commit ffff363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/hooks/use-app-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function useAppTheme(options: UseAppThemeType) {
})

// if (appStore.configuration?.theme === '' || appStore.configuration?.theme !== themeData.defaultTheme) {
if (appStore.configuration?.theme === '') {
if (appStore.configuration?.theme === '' || !themeNames.includes(appStore.configuration?.theme)) {
dispatch(setTheme(themeData.defaultTheme))
}

Expand Down

0 comments on commit ffff363

Please sign in to comment.