Skip to content

Commit 9ed0af5

Browse files
committed
Undid ternary logic for pronouns
- Removed ternary logic for pronouns which showed a placeholder of "No Pronouns" if a committee member's pronouns was empty. This was simply replaced with empty:hidden, so the pronoun element just won't display if they're empty
1 parent 2c004f5 commit 9ed0af5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

client/src/pages/about.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,8 @@ export default function AboutPage() {
9595
</Link>
9696
)}
9797
</text>
98-
<text className="inline-block bg-card px-2 py-1">
99-
{committeeMember.pronouns === ""
100-
? "No Pronouns"
101-
: committeeMember.pronouns}
98+
<text className="inline-block bg-card px-2 py-1 empty:hidden">
99+
{committeeMember.pronouns}
102100
</text>
103101
</p>
104102
<p className="inline-block bg-card px-2 py-1 text-primary">

0 commit comments

Comments
 (0)