Skip to content

Commit

Permalink
Fix: notifications popup: don't hide just one item
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Oct 2, 2023
1 parent 8fcb5df commit d419af8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const NotificationCenter = (): ReactElement => {
return notifications.slice().sort((a, b) => b.timestamp - a.timestamp)
}, [notifications])

const canExpand = notifications.length > NOTIFICATION_CENTER_LIMIT
const canExpand = notifications.length > NOTIFICATION_CENTER_LIMIT + 1

const notificationsToShow =
canExpand && showAll ? chronologicalNotifications : chronologicalNotifications.slice(0, NOTIFICATION_CENTER_LIMIT)
Expand Down

0 comments on commit d419af8

Please sign in to comment.