Fix account page account issue

This commit is contained in:
xmflsct 2023-02-25 21:57:11 +01:00
parent 8b721e1d2e
commit 216a736860
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@ const AccountInformationAccount: React.FC = () => {
const [acct] = useAccountStorage.string('auth.account.acct')
const [domain] = useAccountStorage.string('auth.account.domain')
const localInstance = account?.acct?.includes('@') ? account?.acct?.includes(`@${domain}`) : true
const localInstance = account?.acct?.includes('@')
? account?.acct?.includes(`@${domain}`)
: !account?._remote
if (account || pageMe) {
return (