Skip to content

Commit

Permalink
fix: store (#1672)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekaartajaya authored Jan 25, 2023
1 parent 1bcf40a commit 0861eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const reducer: Reducer<RootState, AnyAction> = (state, action) => {
};

return nextState;
} else if (action.type === DESTROY_SESSION) return (state = undefined);
} else if (action.type === DESTROY_SESSION) return (state = state);
else {
return combinedReducers(state, action);
}
Expand Down

0 comments on commit 0861eed

Please sign in to comment.