Skip to content

Commit

Permalink
Feat: 로그아웃 api 요청 성공시 profile refetch 및 루트로 push
Browse files Browse the repository at this point in the history
  • Loading branch information
navyjeongs committed Oct 31, 2023
1 parent 810a3c7 commit 8cf671a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const Header = () => {
Cookies.remove('accessToken');
Cookies.remove('refreshToken');

await profileContext?.refetchProfile();
router.push('/');
} catch (error) {
alert('로그아웃에 실패하였습니다.\n다시 시도해주세요');
Expand Down

0 comments on commit 8cf671a

Please sign in to comment.