From d49329f97dbe1f80f6ad561ab6d84f01e50981fb Mon Sep 17 00:00:00 2001 From: GandalfGwaihir Date: Tue, 2 Apr 2024 04:49:15 +0530 Subject: [PATCH] remove null check as value can be undefined --- src/pages/ProfilePage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/ProfilePage.tsx b/src/pages/ProfilePage.tsx index 270b72b93da8..aa93b94e0e9f 100755 --- a/src/pages/ProfilePage.tsx +++ b/src/pages/ProfilePage.tsx @@ -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