From dffce097930d860d0b75c341b7354cc83aad02b7 Mon Sep 17 00:00:00 2001 From: JitHoon Date: Wed, 15 Nov 2023 13:31:19 +0900 Subject: [PATCH] =?UTF-8?q?FIx:=20=EC=B1=84=ED=8C=85=20=EB=B9=8C=EB=93=9C?= =?UTF-8?q?=20=EC=97=90=EB=9F=AC=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chat/[id]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/chat/[id]/page.tsx b/app/chat/[id]/page.tsx index ad671bc..9a8f9cf 100644 --- a/app/chat/[id]/page.tsx +++ b/app/chat/[id]/page.tsx @@ -8,7 +8,7 @@ import ChatRoom from '@/Components/Chat/ChatRoom'; const Chat = ({ params }: { params: { id: string } }) => { const chatId = params.id; const query = useSearchParams(); - const privateValue = query.get('isPrivate') as string; + const privateValue = query?.get('isPrivate') as string; const accessToken = getCookie('accessToken'); const socket = io(`https://fastcampus-chat.net/chat?chatId=${chatId}`, {