Fix wrong postsCount

This commit is contained in:
Lim Chee Aun 2024-09-11 10:29:03 +08:00
parent 71008b91c3
commit 9d927a3d24

View file

@ -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) {