Skip to content

Commit

Permalink
[PLAT-834]: Fix notifications last seen new tag (#3143)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-kiam authored Apr 3, 2023
1 parent 5c73e0b commit e68ada9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2094,7 +2094,7 @@ export const audiusBackend = ({
return {
groupId: notification.group_id,
timestamp,
isViewed: notification.seen_at == null,
isViewed: !!notification.seen_at,
id: `timestamp:${timestamp}:group_id:${notification.group_id}`
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/web/src/components/nav/desktop/NavColumn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ const NavColumn = ({
record(make(Name.NOTIFICATIONS_OPEN, { source: 'button' }))
} else {
closeNotificationPanel()
}
if (notificationCount > 0) {
markAllNotificationsAsViewed()
if (notificationCount > 0) {
markAllNotificationsAsViewed()
}
}
}, [
notificationPanelIsOpen,
Expand Down

0 comments on commit e68ada9

Please sign in to comment.