fix(frontend): fall back to full pronoun set if it's a malformed set
This commit is contained in:
parent
3ef4c715e7
commit
ec6b048501
1 changed files with 2 additions and 2 deletions
|
@ -20,8 +20,8 @@
|
|||
return pronouns.display_text;
|
||||
} else {
|
||||
const split = pronouns.pronouns.split("/");
|
||||
if (split.length < 2) return split.join("/");
|
||||
else return split.slice(0, 2).join("/");
|
||||
if (split.length === 5) return split.splice(0, 2).join("/");
|
||||
return pronouns.pronouns;
|
||||
}
|
||||
})
|
||||
.join(", ");
|
||||
|
|
Loading…
Reference in a new issue