Skip to content

Commit

Permalink
Update src/pages/ProfilePage.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Aldo Canepa Garay <[email protected]>
  • Loading branch information
allgandalf and aldo-expensify authored Apr 4, 2024
1 parent c0a929e commit 6b7e935
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/ProfilePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ function ProfilePage({personalDetails, personalDetailsMetadata, route, session,
const login = details?.login ?? '';
const timezone = details?.timezone;
const reportRecipient = personalDetails?.[accountID];
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
const isParticipantValidated = reportRecipient?.validated || false;
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 6b7e935

Please sign in to comment.