fix: 'read' -> 'unread' heading, my issue wrong filter

This commit is contained in:
Dakshesh Jain 2023-07-18 16:47:04 +05:30
parent b080b3047c
commit e3d489ae52

View File

@ -189,7 +189,7 @@ export const NotificationPopover = () => {
{snoozed {snoozed
? "Snoozed Notifications" ? "Snoozed Notifications"
: readNotification : readNotification
? "Read Notifications" ? "Unread Notifications"
: "Archived Notifications"} : "Archived Notifications"}
</span> </span>
</h4> </h4>
@ -247,9 +247,7 @@ export const NotificationPopover = () => {
<div className="w-full flex-1 overflow-y-auto"> <div className="w-full flex-1 overflow-y-auto">
{notifications ? ( {notifications ? (
notifications.filter( notifications.length > 0 ? (
(notification) => notification.data.issue_activity.field !== "None"
).length > 0 ? (
notifications.map((notification) => ( notifications.map((notification) => (
<NotificationCard <NotificationCard
key={notification.id} key={notification.id}