From 9d927a3d24afe1e3f9b0f6e14f49702f6c770d5d Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 11 Sep 2024 10:29:03 +0800 Subject: [PATCH] Fix wrong postsCount --- 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 e2b0996e..d0602400 100644 --- a/src/components/notification.jsx +++ b/src/components/notification.jsx @@ -374,7 +374,7 @@ function Notification({ if (typeof text === 'function') { const count = _accounts?.length || sampleAccounts?.length || (account ? 1 : 0); - const postsCount = _statuses?.length || 0; + const postsCount = _statuses?.length || (status ? 1 : 0); if (type === 'admin.report') { const targetAccount = report?.targetAccount; if (targetAccount) {