Skip to content

Commit a8f3d7e

Browse files
authored
Add name pronunciation and pronouns to profile if they exist (#348)
1 parent ff5acba commit a8f3d7e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pages/users/Read.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function ProfileToCard({user}: ProfileToCardProps) {
6767
</Typography>
6868
<List>
6969
{Object.entries(user.profile)
70-
.filter(([_, v]) => v != null)
70+
.filter(([u, v]) => v != null && u != 'Pronouns' && u != 'Name Pronunciation')
7171
.map(([key, value]: [string, string]) => (
7272
<ListItem key={key} sx={{padding: 0}}>
7373
<ListItemText primary={key} secondary={value} />
@@ -438,6 +438,11 @@ export default function ReadUser() {
438438
<Typography variant="h5" textAlign="center">
439439
{user.email?.toLowerCase()}
440440
</Typography>
441+
<Typography>
442+
{user.profile?.Pronouns}
443+
{user.profile?.Pronouns && user.profile?.['Name Pronunciation'] && <></>}
444+
{user.profile?.['Name Pronunciation']}
445+
</Typography>
441446
</Stack>
442447
<Divider />
443448
<Stack justifyContent="center" direction="row" gap={1}>

0 commit comments

Comments
 (0)