diff --git a/src/pages/notifications.jsx b/src/pages/notifications.jsx index 8c6b57bc..fb1a1393 100644 --- a/src/pages/notifications.jsx +++ b/src/pages/notifications.jsx @@ -379,39 +379,43 @@ function Notifications({ columnMode }) { )} {snapStates.notifications.length ? ( <> - {snapStates.notifications.map((notification) => { - if (onlyMentions && notification.type !== 'mention') { - return null; - } - const notificationDay = new Date(notification.createdAt); - const differentDay = - notificationDay.toDateString() !== currentDay.toDateString(); - if (differentDay) { - currentDay = notificationDay; - } - // if notificationDay is yesterday, show "Yesterday" - // if notificationDay is before yesterday, show date - const heading = - notificationDay.toDateString() === yesterdayDate.toDateString() - ? 'Yesterday' - : niceDateTime(currentDay, { - hideTime: true, - }); - return ( - <> - {differentDay &&