fix: Fix logging out with invalid token

This commit is contained in:
Maksim Eltyshev
2023-10-20 22:34:58 +02:00
parent 6a09e9a984
commit 4e7e57dfd9
4 changed files with 16 additions and 6 deletions

View File

@@ -24,9 +24,11 @@ export default (state = initialState, { type, payload }) => {
return {
...state,
isInitializing: false,
...(payload.config && {
config: payload.config,
}),
};
case ActionTypes.CORE_INITIALIZE__CONFIG_FETCH:
return {
...state,
config: payload.config,
};
default:
return state;