From c20d89c5dec9dd7392064ce5b923c17cd496c75e Mon Sep 17 00:00:00 2001 From: Oleg Vavilov Date: Wed, 21 May 2025 00:10:30 +0300 Subject: [PATCH] [UI] Dark/light theme toggler state is reset after page reload #289 --- frontend/src/App/slice.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/App/slice.ts b/frontend/src/App/slice.ts index eb978a971..bee2e4ecb 100644 --- a/frontend/src/App/slice.ts +++ b/frontend/src/App/slice.ts @@ -21,7 +21,7 @@ const getInitialState = (): IAppState => { try { const modeStorageData = localStorage.getItem(MODE_STORAGE_KEY); - if (modeStorageData && JSON.parse(modeStorageData)) { + if (modeStorageData) { activeMode = modeStorageData as Mode; } } catch (e) {