From 5cd9019cf280b0678ee8719d7191cdc19009f399 Mon Sep 17 00:00:00 2001 From: novice0840 Date: Thu, 24 Oct 2024 17:13:52 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20useExit=20memberId=20=EB=AA=BB=20?= =?UTF-8?q?=EB=B6=88=EB=9F=AC=EC=98=A4=EB=8A=94=20=EC=97=90=EB=9F=AC=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0=20#372?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/layout/Header/hooks/useExit.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/layout/Header/hooks/useExit.ts b/frontend/src/components/layout/Header/hooks/useExit.ts index 36d7fe1f..c617c619 100644 --- a/frontend/src/components/layout/Header/hooks/useExit.ts +++ b/frontend/src/components/layout/Header/hooks/useExit.ts @@ -6,7 +6,9 @@ import useGetUserInfo from '@/hooks/useGetUserInfo'; import { deleteAllCookies } from '@/utils/cookie'; export const useExit = () => { - const { member: memberId } = useGetUserInfo(); + const { + member: { memberId }, + } = useGetUserInfo(); const navigate = useNavigate(); const { roomId } = useParams();