From 5a5e3028454a69989d8758a11d463b15f66966c9 Mon Sep 17 00:00:00 2001 From: Arkadiusz Bachorski <60391032+arkadiuszbachorski@users.noreply.github.com> Date: Mon, 6 Jan 2025 19:48:42 +0100 Subject: [PATCH] Make notifications data getting simpler --- routes/~_dashboard/NotificationsCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/~_dashboard/NotificationsCard.tsx b/routes/~_dashboard/NotificationsCard.tsx index 727d03e5..a06d01c3 100644 --- a/routes/~_dashboard/NotificationsCard.tsx +++ b/routes/~_dashboard/NotificationsCard.tsx @@ -32,7 +32,7 @@ export const NotificationsCard = () => { select: (notifications) => filterUnreadNotifications(notifications).slice(0, 3), }) - const { data: notifications = [] } = notificationQuery + const notifications = notificationQuery.data ?? [] return (