Skip to content

Commit

Permalink
Render nothing instead of null when participant has no email.
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggabyte committed Aug 28, 2023
1 parent fc3f99e commit 886aefa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/events/components/ParticipantListSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ const ParticipantListSection: FC<ParticipantListSectionListProps> = ({
sortable: false,
valueGetter: (params) => {
if (params.row.person) {
return `${params.row.person.email}`;
return params.row.person.email;
} else {
return `${params.row.email}`;
return params.row.email;
}
},
},
Expand Down

0 comments on commit 886aefa

Please sign in to comment.