From 940cd6e84e47082139d49ffd79452ee35e2ad62e Mon Sep 17 00:00:00 2001 From: Yang ga-hyeon Date: Mon, 24 Feb 2025 11:20:20 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=EB=A1=9C=EA=B7=B8=EC=95=84?= =?UTF-8?q?=EC=9B=83=20=ED=9B=84=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=EB=A1=9C=20=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Gnb/UserMenu.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Gnb/UserMenu.tsx b/src/components/Gnb/UserMenu.tsx index 1988e659..8e5af85e 100644 --- a/src/components/Gnb/UserMenu.tsx +++ b/src/components/Gnb/UserMenu.tsx @@ -68,6 +68,7 @@ export default function UserMenu({ userId, closeMenu, onChargeClick }: UserMenuP removeAccessToken(); router.reload(); setLogout(); + router.push("/login"); }; return ( From a7c3963b75b6f71511a0b1f06b9fcae9a3555edd Mon Sep 17 00:00:00 2001 From: Yang ga-hyeon Date: Mon, 24 Feb 2025 11:21:40 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=EC=95=A1=EC=84=B8=EC=8A=A4?= =?UTF-8?q?=ED=86=A0=ED=81=B0=EC=9D=B4=20=EC=9E=88=EC=9D=84=20=EB=95=8C?= =?UTF-8?q?=EB=A7=8C=20sse=20=EC=97=B0=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/useRealTimeNotification.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stores/useRealTimeNotification.ts b/src/stores/useRealTimeNotification.ts index c6cd131d..201fec1f 100644 --- a/src/stores/useRealTimeNotification.ts +++ b/src/stores/useRealTimeNotification.ts @@ -10,6 +10,7 @@ const useRealTimeNotification = () => { const connectToSSE = () => { const accessToken = getAccessToken(); + if (!accessToken) return; const newEventSource = new EventSourcePolyfill( `${process.env.NEXT_PUBLIC_API_URL}/notifications/stream`, {