Skip to content

Commit

Permalink
fix: in signOut, return dispatch instead of returning nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Nov 6, 2023
1 parent ba28fd7 commit f5c6751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/account/accountSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,5 +284,5 @@ export const signOut = () => (dispatch: SharedDispatch) => {
});
removeToken();
dispatch(setHasToken(false));
dispatch(setCurrentUser(null));
return dispatch(setCurrentUser(null));
};

0 comments on commit f5c6751

Please sign in to comment.