Skip to content

Commit c20d89c

Browse files
committed
[UI] Dark/light theme toggler state is reset after page reload #289
1 parent 2102b1b commit c20d89c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/App/slice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const getInitialState = (): IAppState => {
2121
try {
2222
const modeStorageData = localStorage.getItem(MODE_STORAGE_KEY);
2323

24-
if (modeStorageData && JSON.parse(modeStorageData)) {
24+
if (modeStorageData) {
2525
activeMode = modeStorageData as Mode;
2626
}
2727
} catch (e) {

0 commit comments

Comments
 (0)