Skip to content

Commit 33029c3

Browse files
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.
1 parent 5c8cac9 commit 33029c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/modules/notifications/NotificationsInbox/NotificationsInbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export const NotificationsInbox: FC<NotificationsInboxProps> = ({
156156
error={error}
157157
isLoadingMoreNotifications={isLoadingMoreNotifications}
158158
hasMoreNotifications={Boolean(
159-
inboxRes && inboxRes.notifications.length === NOTIFICATIONS_LIMIT,
159+
inboxRes && inboxRes.notifications.length % NOTIFICATIONS_LIMIT === 0,
160160
)}
161161
onRetry={refetch}
162162
onMarkAllAsRead={markAllAsReadMutation.mutate}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy