Skip to content

Commit

Permalink
🚨Hotfix: useChatList
Browse files Browse the repository at this point in the history
  • Loading branch information
shlee9999 committed Dec 9, 2024
1 parent 43c5ef8 commit 80c4f95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/apis/chatRoom/useChatList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ export default function useChatList() {
return useQuery({
queryKey: queryKey.social.chatRoomList(),
queryFn: () => fetchChatRoomList().then(res => res.data),
enabled: !!localStorage.getItem('token'),
})
}

0 comments on commit 80c4f95

Please sign in to comment.