Skip to content

Commit 80cfcc3

Browse files
committed
default to initial state
1 parent 4960a99 commit 80cfcc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/state/store.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ export function configureAppStore(
4747
...(preloadedState?.authorisation ?? {}),
4848
...(hydratedIsAdminMode !== undefined
4949
? { isAdminMode: hydratedIsAdminMode }
50-
: {}),
50+
: initialAuthSlice),
5151
} as typeof initialAuthSlice,
5252
criticality: {
5353
...(preloadedState?.criticality ?? {}),
5454
...((hydratedIsCriticalMode !== undefined
5555
? { isCriticalMode: hydratedIsCriticalMode }
56-
: {}) as typeof initialCriticalState),
56+
: { initialCriticalState }) as typeof initialCriticalState),
5757
},
5858
};
5959

0 commit comments

Comments
 (0)