Skip to content

Commit

Permalink
Wait routing
Browse files Browse the repository at this point in the history
  • Loading branch information
khkim6040 committed Aug 9, 2024
1 parent 3efb05e commit 0cdee79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/navbar/menu.item.user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const MenuItemUser = () => {
await PoPoAxios.get('/auth/logout', {
withCredentials: true,
});
router.push('/');
await router.push('/');
window.location.reload();
} catch (err) {
alert('로그아웃에 실패했습니다.');
Expand Down

0 comments on commit 0cdee79

Please sign in to comment.