From d0d42d56033fad5a71ed520096301912305ef477 Mon Sep 17 00:00:00 2001 From: Yauheni Pasiukevich Date: Mon, 4 Mar 2024 14:25:33 +0100 Subject: [PATCH] revert eslint disable for logical OR --- src/pages/ProfilePage.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/ProfilePage.tsx b/src/pages/ProfilePage.tsx index ceec3acc3c3b..e1b3d9edfbef 100755 --- a/src/pages/ProfilePage.tsx +++ b/src/pages/ProfilePage.tsx @@ -78,6 +78,7 @@ function ProfilePage({personalDetails, route, session, report, reports}: Profile const details: PersonalDetails | EmptyObject = personalDetails?.[accountID] ?? (ValidationUtils.isValidAccountRoute(accountID) ? {} : {isLoading: false, accountID: 0, avatar: ''}); const displayName = PersonalDetailsUtils.getDisplayNameOrDefault(details, undefined, undefined, isCurrentUser); + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing const avatar = details?.avatar || UserUtils.getDefaultAvatar(); // we can have an empty string and in this case, we need to show the default avatar const fallbackIcon = details?.fallbackIcon ?? ''; const login = details?.login ?? '';