[Glitch] Fix wrapstodon not falling back to username when display name is not set
Port 4af8e83c8a236265c46a1b984fa5dbd3a7c73dfe to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
6734fd206e
commit
235af71f85
@ -137,7 +137,8 @@ export const Archetype: React.FC<{
|
|||||||
? archetypeSelfDescriptions
|
? archetypeSelfDescriptions
|
||||||
: archetypePublicDescriptions;
|
: 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 (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user