LatestAccountsPanel: fix expand count

remove-account-counters-reducer
Alex Gleason 2021-07-14 13:21:23 -05:00
rodzic 12939e3354
commit 4ca3d68bf6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -51,6 +51,8 @@ class LatestAccountsPanel extends ImmutablePureComponent {
return null; return null;
} }
const expandCount = total - accountIds.size;
return ( return (
<AccountListPanel <AccountListPanel
icon='users' icon='users'
@ -58,7 +60,7 @@ class LatestAccountsPanel extends ImmutablePureComponent {
accountIds={accountIds} accountIds={accountIds}
limit={limit} limit={limit}
total={total} total={total}
expandMessage={intl.formatMessage(messages.expand, { count: total })} expandMessage={intl.formatMessage(messages.expand, { count: expandCount })}
expandRoute='/admin/users' expandRoute='/admin/users'
withDate withDate
withRelationship={false} withRelationship={false}