From d01f4823fa58ea0994ac5c99d8f66051b0eb5ec5 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 21 May 2025 08:27:19 +0800 Subject: [PATCH] Fix NaN --- src/components/notification.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/notification.jsx b/src/components/notification.jsx index aff4fced..0ba00829 100644 --- a/src/components/notification.jsx +++ b/src/components/notification.jsx @@ -383,7 +383,7 @@ function Notification({ if (typeof text === 'function') { const count = - type === 'favourite' || type === 'reblog' + (type === 'favourite' || type === 'reblog') && notificationsCount ? notificationsCount : _accounts?.length || sampleAccounts?.length || (account ? 1 : 0); const postsCount = _statuses?.length || (status ? 1 : 0);