diff --git a/app/soapbox/features/ui/components/user-panel.tsx b/app/soapbox/features/ui/components/user-panel.tsx index 0ccfe1631..cbc45047a 100644 --- a/app/soapbox/features/ui/components/user-panel.tsx +++ b/app/soapbox/features/ui/components/user-panel.tsx @@ -26,10 +26,10 @@ const UserPanel: React.FC = ({ accountId, action, badges, domain }) const fqn = useAppSelector((state) => displayFqn(state)); if (!account) return null; - const displayNameHtml = { __html: account.get('display_name_html') }; - const acct = !account.get('acct').includes('@') && domain ? `${account.get('acct')}@${domain}` : account.get('acct'); - const header = account.get('header'); - const verified = account.get('verified'); + const displayNameHtml = { __html: account.display_name_html }; + const acct = !account.acct.includes('@') && domain ? `${account.acct}@${domain}` : account.acct; + const header = account.header; + const verified = account.verified; return (
@@ -43,11 +43,11 @@ const UserPanel: React.FC = ({ accountId, action, badges, domain }) - + {action && ( @@ -57,7 +57,7 @@ const UserPanel: React.FC = ({ accountId, action, badges, domain }) - + @@ -77,11 +77,11 @@ const UserPanel: React.FC = ({ accountId, action, badges, domain }) - {account.get('followers_count') >= 0 && ( - + {account.followers_count >= 0 && ( + - {shortNumberFormat(account.get('followers_count'))} + {shortNumberFormat(account.followers_count)} @@ -90,11 +90,11 @@ const UserPanel: React.FC = ({ accountId, action, badges, domain }) )} - {account.get('following_count') >= 0 && ( - + {account.following_count >= 0 && ( + - {shortNumberFormat(account.get('following_count'))} + {shortNumberFormat(account.following_count)}