Skip to content

Commit

Permalink
Merge pull request #1489 from zetkin/issue-1460/null-email-in-event-p…
Browse files Browse the repository at this point in the history
…articipant

Render nothing instead of null when participant has no email.
  • Loading branch information
ziggabyte authored Sep 6, 2023
2 parents eae969b + 886aefa commit e249a7e
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 e249a7e

Please sign in to comment.