Skip to content

Commit

Permalink
[ux] fix setup of dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoPennec committed Oct 23, 2024
1 parent 63066f6 commit 4f47aa8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ export default {
const darkTheme = localStorage.getItem('dark-theme')
const isDarkTheme =
darkTheme === 'true' ||
(darkTheme !== 'false' && this.mainConfig?.dark_theme_by_default)
(darkTheme !== 'false' &&
Boolean(this.mainConfig?.dark_theme_by_default))
this.$store.commit('TOGGLE_DARK_THEME', isDarkTheme)
},
Expand Down

0 comments on commit 4f47aa8

Please sign in to comment.