Skip to content

Commit

Permalink
revert eslint disable for logical OR
Browse files Browse the repository at this point in the history
  • Loading branch information
pasyukevich committed Mar 4, 2024
1 parent 025b609 commit d0d42d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/ProfilePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? '';
Expand Down

0 comments on commit d0d42d5

Please sign in to comment.