From ffc01bb70246e774f2db922fb2be21e2fb9eefe7 Mon Sep 17 00:00:00 2001 From: Paul Neubauer <paulneubauer@live.de> Date: Tue, 16 Jan 2024 14:39:13 +0100 Subject: [PATCH] Fix missing unref --- packages/web-pkg/src/composables/piniaStores/theme.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web-pkg/src/composables/piniaStores/theme.ts b/packages/web-pkg/src/composables/piniaStores/theme.ts index d725079984e..a6a99fae98d 100644 --- a/packages/web-pkg/src/composables/piniaStores/theme.ts +++ b/packages/web-pkg/src/composables/piniaStores/theme.ts @@ -95,14 +95,14 @@ export const useThemeStore = defineStore('theme', () => { setAndApplyTheme( unref(availableThemes).find((t) => t.name === unref(currentLocalStorageThemeName)) || - (isDark ? availableThemes.value[1] : availableThemes.value[0]), + (unref(isDark) ? availableThemes.value[1] : availableThemes.value[0]), false ) } const setAutoSystemTheme = () => { currentLocalStorageThemeName.value = null - setAndApplyTheme(isDark ? availableThemes.value[1] : availableThemes.value[0], false) + setAndApplyTheme(unref(isDark) ? availableThemes.value[1] : availableThemes.value[0], false) } const isCurrentThemeAutoSystem = computed(() => {