fix: handle undefined displayName (#21)
This commit is contained in:
parent
2ef2e97a30
commit
f7f3e9c7e1
6 changed files with 16 additions and 9 deletions
5
composables/masto.ts
Normal file
5
composables/masto.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
import type { Account } from 'masto'
|
||||
|
||||
export function getDisplayName(account: Account) {
|
||||
return account.displayName || account.username
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue