Skip to content

Commit

Permalink
[WebApp] Update star chef filter to avoid an error with old notificat…
Browse files Browse the repository at this point in the history
…ions (#1129)
  • Loading branch information
Maks19 authored Feb 26, 2024
1 parent 71351e4 commit c0a2c26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const NavigationBarWithNovuNotifications: FunctionComponent<NavigationBar
const fetchNotificationsPageData = fetchNotificationsData.data?.pages[0]
const unreadNovuNotifications = fetchNotificationsPageData?.data
const unreadNovuNotificationsWithoutStarChef = unreadNovuNotifications?.filter(
(unreadNovuNotification) => !unreadNovuNotification.payload.starChefStatus,
(unreadNovuNotification) => !unreadNovuNotification.payload?.starChefStatus,
)
const unseenNovuNotificationsIds = unreadNovuNotificationsWithoutStarChef
?.filter((unreadNovuNotificationWithoutStarChef) => !unreadNovuNotificationWithoutStarChef.seen)
Expand Down

0 comments on commit c0a2c26

Please sign in to comment.