From 0cdee79153461a4681ec2f00f7bd964025a44a9e Mon Sep 17 00:00:00 2001 From: Gwanho Kim Date: Fri, 9 Aug 2024 12:44:48 +0900 Subject: [PATCH] Wait routing --- components/navbar/menu.item.user.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/navbar/menu.item.user.tsx b/components/navbar/menu.item.user.tsx index 6d17da8..e8f593a 100644 --- a/components/navbar/menu.item.user.tsx +++ b/components/navbar/menu.item.user.tsx @@ -23,7 +23,7 @@ const MenuItemUser = () => { await PoPoAxios.get('/auth/logout', { withCredentials: true, }); - router.push('/'); + await router.push('/'); window.location.reload(); } catch (err) { alert('로그아웃에 실패했습니다.');