Skip to content

Commit

Permalink
remove unneeded variable in ProfilePage
Browse files Browse the repository at this point in the history
  • Loading branch information
Kicu committed Apr 22, 2024
1 parent 53b3251 commit ad3e041
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pages/ProfilePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ function ProfilePage({route}: ProfilePageProps) {
const details: PersonalDetails | EmptyObject = personalDetails?.[accountID] ?? (ValidationUtils.isValidAccountRoute(accountID) ? {} : {accountID: 0, avatar: ''});

const displayName = PersonalDetailsUtils.getDisplayNameOrDefault(details, undefined, undefined, isCurrentUser);
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
const avatar = details.avatar;
const fallbackIcon = details?.fallbackIcon ?? '';
const login = details?.login ?? '';
const timezone = details?.timezone;
Expand Down Expand Up @@ -162,7 +160,7 @@ function ProfilePage({route}: ProfilePageProps) {
<Avatar
containerStyles={[styles.avatarXLarge, styles.mb3]}
imageStyles={[styles.avatarXLarge]}
source={avatar}
source={details.avatar}
size={CONST.AVATAR_SIZE.XLARGE}
fallbackIcon={fallbackIcon}
accountID={accountID}
Expand Down

0 comments on commit ad3e041

Please sign in to comment.