Thanks to visit codestin.com
Credit goes to github.com

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

+1-1
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)