mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-27 03:04:13 +00:00
chore: in case display_name not exist
This commit is contained in:
parent
96afee5b09
commit
0ef0ea7dfa
|
@ -1468,7 +1468,7 @@ export function communitySelectName(cv: CommunityView): string {
|
||||||
|
|
||||||
export function personSelectName(pvs: PersonViewSafe): string {
|
export function personSelectName(pvs: PersonViewSafe): string {
|
||||||
return pvs.person.local
|
return pvs.person.local
|
||||||
? pvs.person.display_name
|
? pvs.person.display_name || pvs.person.name
|
||||||
: `${hostname(pvs.person.actor_id)}/${pvs.person.name}`;
|
: `${hostname(pvs.person.actor_id)}/${pvs.person.name}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue