From ed24d84106fb284b7ff2521e4485df82aab0c806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=84=9D=EC=A7=84?= Date: Tue, 23 Apr 2024 16:50:18 +0900 Subject: [PATCH] =?UTF-8?q?fix(client):=20=EC=9D=B4=EB=A9=94=EC=9D=BC=20?= =?UTF-8?q?=EC=9C=A0=EC=9E=85=EB=A5=A0=20=ED=99=95=EC=9D=B8=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20=EC=95=A1=EC=84=B8=EC=8A=A4=20=ED=86=A0?= =?UTF-8?q?=ED=81=B0=20=EC=97=AC=EB=B6=80=EB=A5=BC=20=ED=86=B5=ED=95=B4=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=97=AC=EB=B6=80=EB=A5=BC=20?= =?UTF-8?q?=ED=99=95=EC=9D=B8=ED=95=98=EB=8A=94=20=EB=A1=9C=EC=A7=81?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/client/src/app/email/page.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/client/src/app/email/page.tsx b/apps/client/src/app/email/page.tsx index 7c88615b..aefe447b 100644 --- a/apps/client/src/app/email/page.tsx +++ b/apps/client/src/app/email/page.tsx @@ -2,18 +2,19 @@ import { useRouter } from 'next/navigation'; import { useLayoutEffect } from 'react'; -import { useUser } from '@/hooks/common/useUser'; +import { LocalStorage } from '@/libs/api/storage'; import { useLogAnalyticsEvent } from '@/libs/logging'; const EmailPage = () => { const router = useRouter(); const { logShowEvent } = useLogAnalyticsEvent(); - const { user } = useUser(); useLayoutEffect(() => { + const isLogin = Boolean(LocalStorage.getItem('siac')); + logShowEvent({ name: 'show_email_entry_site' }); - if (user.isLogin) { + if (isLogin) { router.replace('/notification'); } else { router.replace('/');