fix: handle no acct string
This commit is contained in:
parent
abe6af40f3
commit
34dc2f7736
2 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ export function getShortHandle({ acct }: Account) {
|
|||
}
|
||||
|
||||
export function getServerName(account: Account) {
|
||||
if (account.acct.includes('@'))
|
||||
if (account.acct?.includes('@'))
|
||||
return account.acct.split('@')[1]
|
||||
// We should only lack the server name if we're on the same server as the account
|
||||
return currentInstance.value?.uri || ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue