From a6cae8f878bce508044bdbbfd7e56efaa1651c22 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 26 May 2024 12:59:04 -0500 Subject: [PATCH] renderAccount: display_name cannot be undefined --- src/views/mastodon/accounts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/mastodon/accounts.ts b/src/views/mastodon/accounts.ts index 347a9bc..918d03b 100644 --- a/src/views/mastodon/accounts.ts +++ b/src/views/mastodon/accounts.ts @@ -43,7 +43,7 @@ async function renderAccount( bot: false, created_at: nostrDate(event.user?.created_at ?? event.created_at).toISOString(), discoverable: true, - display_name: name, + display_name: name ?? '', emojis: renderEmojis(event), fields: [], follow_requests_count: 0,