Skip to content

Commit

Permalink
fix skip star chef notifications (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks19 authored Feb 26, 2024
1 parent 5c5fbcb commit 71351e4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const NavigationBarWithNovuNotifications: FunctionComponent<NavigationBar
const unseenNovuNotificationsIds = unreadNovuNotificationsWithoutStarChef
?.filter((unreadNovuNotificationWithoutStarChef) => !unreadNovuNotificationWithoutStarChef.seen)
.map((unseenNovuNotification) => unseenNovuNotification._id)
const unseenNovuNotificationsAmount = unseenNovuNotificationsIds?.length ?? 0

const { markNotificationsAs } = useMarkNotificationsAs()
const handleMarkNotificationAs = useCallback(
Expand Down Expand Up @@ -64,7 +65,7 @@ export const NavigationBarWithNovuNotifications: FunctionComponent<NavigationBar
news: newsNotifications,
warnings: warningsNotifications,
achievements: achievementNotifications,
hasUnseenNotifications: !!unseenNovuNotificationsIds,
hasUnseenNotifications: unseenNovuNotificationsAmount > 0,
onOpenNotificationsDrawer: handleOpenNotificationsDrawer,
onCloseNotificationsDrawer,
}
Expand Down

0 comments on commit 71351e4

Please sign in to comment.