fix inbox tab unread badge visible without invite count

This commit is contained in:
Ajay Bura 2024-03-24 10:14:37 +05:30
parent b0654cb10d
commit 925f6407f2

View file

@ -21,7 +21,7 @@ export function InboxTab() {
tooltip="Inbox"
avatarChildren={<Icon src={Icons.Bell} filled={inboxSelected} />}
onClick={() => navigate(getInboxPath())}
notificationBadge={() => <UnreadBadge highlight count={inviteCount} />}
notificationBadge={() => inviteCount > 0 && <UnreadBadge highlight count={inviteCount} />}
/>
);
}