Fix stupid mistake: title not showing acct

This commit is contained in:
Lim Chee Aun 2024-10-21 17:30:24 +08:00
parent bb9ed041a5
commit d097697aef

View file

@ -232,7 +232,7 @@ function AccountStatuses() {
const { i18n } = useLingui(); const { i18n } = useLingui();
let title = t`Account posts`; let title = t`Account posts`;
if (account?.acct) { if (account?.acct) {
const acctDisplay = /@/.test(account.acct) ? '' : '@' + account.acct; const acctDisplay = (/@/.test(account.acct) ? '' : '@') + account.acct;
const accountDisplay = account?.displayName const accountDisplay = account?.displayName
? `${account.displayName} (${acctDisplay})` ? `${account.displayName} (${acctDisplay})`
: `${acctDisplay}`; : `${acctDisplay}`;