renderAccount: display_name cannot be undefined
This commit is contained in:
parent
1fff0834eb
commit
a6cae8f878
|
@ -43,7 +43,7 @@ async function renderAccount(
|
||||||
bot: false,
|
bot: false,
|
||||||
created_at: nostrDate(event.user?.created_at ?? event.created_at).toISOString(),
|
created_at: nostrDate(event.user?.created_at ?? event.created_at).toISOString(),
|
||||||
discoverable: true,
|
discoverable: true,
|
||||||
display_name: name,
|
display_name: name ?? '',
|
||||||
emojis: renderEmojis(event),
|
emojis: renderEmojis(event),
|
||||||
fields: [],
|
fields: [],
|
||||||
follow_requests_count: 0,
|
follow_requests_count: 0,
|
||||||
|
|
Loading…
Reference in New Issue