Skip to content

Commit

Permalink
Make notifications data getting simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiuszbachorski committed Jan 6, 2025
1 parent 8edac30 commit 5a5e302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/~_dashboard/NotificationsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const NotificationsCard = () => {
select: (notifications) =>
filterUnreadNotifications(notifications).slice(0, 3),
})
const { data: notifications = [] } = notificationQuery
const notifications = notificationQuery.data ?? []

return (
<Card className="flex flex-col">
Expand Down

0 comments on commit 5a5e302

Please sign in to comment.