mirror of
https://github.com/mastodon/mastodon.git
synced 2026-01-19 07:46:53 +00:00
Fix wrapstodon not falling back to username when display name is not set (#37229)
This commit is contained in:
parent
861202fd08
commit
4af8e83c8a
|
|
@ -137,7 +137,8 @@ export const Archetype: React.FC<{
|
|||
? archetypeSelfDescriptions
|
||||
: archetypePublicDescriptions;
|
||||
|
||||
const name = account?.display_name;
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- we specifically want to fallback if `display_name` is empty
|
||||
const name = account?.display_name || account?.username;
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user