diff --git a/web/pages/notifications.tsx b/web/pages/notifications.tsx index edd1d573..cf2d7741 100644 --- a/web/pages/notifications.tsx +++ b/web/pages/notifications.tsx @@ -98,7 +98,8 @@ function NotificationsList(props: { privateUser: PrivateUser }) { setPaginatedGroupedNotifications(maxNotificationsToShow) }, [allGroupedNotifications, page]) - if (!paginatedGroupedNotifications) return + if (!paginatedGroupedNotifications || !allGroupedNotifications) + return return (
@@ -127,7 +128,7 @@ function NotificationsList(props: { privateUser: PrivateUser }) { /> ) )} - {allGroupedNotifications && + {paginatedGroupedNotifications.length > 0 && allGroupedNotifications.length > NOTIFICATIONS_PER_PAGE && (