fix: Fix logging out with invalid token

This commit is contained in:
Maksim Eltyshev
2023-10-20 22:34:58 +02:00
parent 3ef5b3ead8
commit 5056d38848
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;