From dc7d9a1e29d99ead0634983aaff608f0c34f885c Mon Sep 17 00:00:00 2001 From: Billal Date: Fri, 26 Apr 2024 22:17:07 +0100 Subject: [PATCH] use isEnabled.value instead of this.darkMode --- src/stores/darkMode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/darkMode.js b/src/stores/darkMode.js index 94abb56a..d11aab20 100644 --- a/src/stores/darkMode.js +++ b/src/stores/darkMode.js @@ -18,7 +18,7 @@ export const useDarkModeStore = defineStore('darkMode', () => { // You can persist dark mode setting // if (typeof localStorage !== 'undefined') { - // localStorage.setItem('darkMode', this.darkMode ? '1' : '0') + // localStorage.setItem('darkMode', isEnabled.value ? '1' : '0') // } }