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'), }) }