From ae0526a58a8b489451f283773e7c468f1e922a1f Mon Sep 17 00:00:00 2001 From: smanylov Date: Tue, 5 May 2026 15:30:26 +0700 Subject: [PATCH] change notification count number rules --- src/app/ui/header/notificationsButton.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/app/ui/header/notificationsButton.tsx b/src/app/ui/header/notificationsButton.tsx index e1a5000..2e66561 100644 --- a/src/app/ui/header/notificationsButton.tsx +++ b/src/app/ui/header/notificationsButton.tsx @@ -147,12 +147,18 @@ export default function NotificationsButton() { - {notificationList?.unreadCount !== 0 && ( + {(notificationList?.unreadCount !== 0 && notificationList?.unreadCount !== undefined) ? ( - {notificationList?.unreadCount ? notificationList?.unreadCount : ''} + {notificationList?.unreadCount > 9 ? '9+' : notificationList?.unreadCount} + + ) : ( + + 0 )}