From 4f47aa858048b1804e3c47873b6f17b32d768132 Mon Sep 17 00:00:00 2001 From: Nicolas Pennec Date: Wed, 23 Oct 2024 11:04:00 +0200 Subject: [PATCH] [ux] fix setup of dark theme --- src/App.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 7a2af9572..2df07ba10 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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) },