Fix wrong postsCount
This commit is contained in:
parent
71008b91c3
commit
9d927a3d24
1 changed files with 1 additions and 1 deletions
|
@ -374,7 +374,7 @@ function Notification({
|
||||||
if (typeof text === 'function') {
|
if (typeof text === 'function') {
|
||||||
const count =
|
const count =
|
||||||
_accounts?.length || sampleAccounts?.length || (account ? 1 : 0);
|
_accounts?.length || sampleAccounts?.length || (account ? 1 : 0);
|
||||||
const postsCount = _statuses?.length || 0;
|
const postsCount = _statuses?.length || (status ? 1 : 0);
|
||||||
if (type === 'admin.report') {
|
if (type === 'admin.report') {
|
||||||
const targetAccount = report?.targetAccount;
|
const targetAccount = report?.targetAccount;
|
||||||
if (targetAccount) {
|
if (targetAccount) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue