Skip to content

Commit

Permalink
fix: close the refresh modal before redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarneo committed Mar 10, 2024
1 parent 89750cf commit fd6e87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/components/header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ const Header = () => {
const data = await refresh();

if (data.statusCode === 401) {
setRedirect(true);
close();
setRedirect(true);
}

dispatch(userLogin(cookie));
Expand Down

0 comments on commit fd6e87d

Please sign in to comment.