Skip to content

Commit

Permalink
🚨 Fix(#47): λŒ€μ‘ 둜직 λ³€κ²½
Browse files Browse the repository at this point in the history
- λ‘œκ·Έμ•„μ›ƒ νŽ˜μ΄μ§€λ‘œ λΌμš°νŠΈν•˜μ§€ μ•Šκ³  μ „μ—­ μƒνƒœ λ³€κ²½
  • Loading branch information
sscoderati committed Nov 29, 2023
1 parent a17213b commit 7c4428a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/_common/NotificationPopup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { NotificationKey } from "@/constants/queryKeys";
const NotificationPopup = () => {
const router = useRouter();
const pathName = usePathname();
const { isAuth } = useAuthStore();
const { isAuth, setIsAuth } = useAuthStore();
const [notificationMenuOpen, setNotificationMenuOpen] = useState(false);
const { toast } = useToast();
const {
Expand All @@ -57,7 +57,8 @@ const NotificationPopup = () => {
description: "토큰이 μ‘΄μž¬ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. λ‹€μ‹œ λ‘œκ·ΈμΈν•΄μ£Όμ„Έμš”.",
variant: "red",
});
router.push("/logout");
setIsAuth(false);
router.refresh();
}
}
return (
Expand Down

0 comments on commit 7c4428a

Please sign in to comment.