- fixed counter of unread msgs;

This commit is contained in:
Vitalii Kiiko
2025-01-03 10:09:17 +01:00
parent 066135d590
commit b73174d688

View File

@@ -215,7 +215,7 @@ const NotificationsSidebar = () => {
<> <>
<i className="pi pi-bell p-overlay-badge topBar__icon notificationsIcon" <i className="pi pi-bell p-overlay-badge topBar__icon notificationsIcon"
onClick={() => setNotificationsVisible(true)}> onClick={() => setNotificationsVisible(true)}>
<Badge value={notifications.length}></Badge> <Badge value={notifications.filter(o => o.status === 'UNREAD').length}></Badge>
</i> </i>
<Sidebar <Sidebar
className="notificationsSidebar" className="notificationsSidebar"