Skip to content

Commit

Permalink
remove null check as value can be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
allgandalf committed Apr 1, 2024
1 parent cc4352a commit d49329f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/ProfilePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ function ProfilePage({personalDetails, personalDetailsMetadata, route, session,
const login = details?.login ?? '';
const timezone = details?.timezone;
const reportRecipient = personalDetails?.[accountID];
const isParticipantValidated = reportRecipient?.validated ?? false;
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
const isParticipantValidated = reportRecipient?.validated || false;

// If we have a reportID param this means that we
// arrived here via the ParticipantsPage and should be allowed to navigate back to it
Expand Down

0 comments on commit d49329f

Please sign in to comment.