Skip to content

Commit

Permalink
✨ 불필요한 리턴 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
oaoong committed Nov 29, 2023
1 parent eb54c5e commit f705d6f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/hooks/api/queries/useNotificationCountQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ import { getNotificationCount } from '@/services/notification/notification'
const useNotificationCountQuery = ({ isLoggedIn }: { isLoggedIn: boolean }) => {
return useQuery({
queryKey: ['notificationCount'] as const,
queryFn: () => {
const res = getNotificationCount()
return res
},
queryFn: () => getNotificationCount(),
refetchInterval: 1000 * 60 * 3,
enabled: isLoggedIn,
})
Expand Down

0 comments on commit f705d6f

Please sign in to comment.