Skip to content

Commit

Permalink
Merge pull request #21722 from rain2o/bugfix/21571
Browse files Browse the repository at this point in the history
Override isLoading only if accountID is invalid
  • Loading branch information
stitesExpensify authored Jun 28, 2023
2 parents e5fd7b8 + 3080043 commit 136833c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ProfilePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function ProfilePage(props) {
}
}, [accountID]);

const details = lodashGet(props.personalDetails, accountID, {isLoading: ValidationUtils.isValidAccountRoute(accountID)});
const details = lodashGet(props.personalDetails, accountID, ValidationUtils.isValidAccountRoute(accountID) ? {} : {isloading: false});

const displayName = details.displayName ? details.displayName : props.translate('common.hidden');
const avatar = lodashGet(details, 'avatar', UserUtils.getDefaultAvatar());
Expand Down

0 comments on commit 136833c

Please sign in to comment.