fix: fix load more notifications only working once (#17094)

The "load more" button in the notifications inbox were only working
once. After taking a look at the code the issue was found and fixed.
This commit is contained in:
Bruno Quaresma
2025-03-25 13:43:01 -03:00
committed by GitHub
parent 5c8cac9fb7
commit 33029c39c0
@@ -156,7 +156,7 @@ export const NotificationsInbox: FC<NotificationsInboxProps> = ({
error={error}
isLoadingMoreNotifications={isLoadingMoreNotifications}
hasMoreNotifications={Boolean(
inboxRes && inboxRes.notifications.length === NOTIFICATIONS_LIMIT,
inboxRes && inboxRes.notifications.length % NOTIFICATIONS_LIMIT === 0,
)}
onRetry={refetch}
onMarkAllAsRead={markAllAsReadMutation.mutate}