From 80c4f95ce292e53f39987a1068811752ca3a006e Mon Sep 17 00:00:00 2001 From: shlee9999 <95556588+shlee9999@users.noreply.github.com> Date: Tue, 10 Dec 2024 00:40:31 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8Hotfix:=20useChatList?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/chatRoom/useChatList.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apis/chatRoom/useChatList.ts b/src/apis/chatRoom/useChatList.ts index 402ca6d..155666a 100644 --- a/src/apis/chatRoom/useChatList.ts +++ b/src/apis/chatRoom/useChatList.ts @@ -6,5 +6,6 @@ export default function useChatList() { return useQuery({ queryKey: queryKey.social.chatRoomList(), queryFn: () => fetchChatRoomList().then(res => res.data), + enabled: !!localStorage.getItem('token'), }) }