Skip to content

Commit

Permalink
Merge pull request #37223 from kmbcook/fix/issue-36610-always-call-api-2
Browse files Browse the repository at this point in the history
Always call OpenPublicProfilePage API
  • Loading branch information
stitesExpensify authored Mar 4, 2024
2 parents 875402d + 36389c7 commit f9f42a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/ProfilePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ function ProfilePage(props) {

// eslint-disable-next-line rulesdir/prefer-early-return
useEffect(() => {
if (ValidationUtils.isValidAccountRoute(accountID) && !hasMinimumDetails) {
if (ValidationUtils.isValidAccountRoute(accountID)) {
PersonalDetails.openPublicProfilePage(accountID);
}
}, [accountID, hasMinimumDetails]);
}, [accountID]);

return (
<ScreenWrapper testID={ProfilePage.displayName}>
Expand Down

0 comments on commit f9f42a3

Please sign in to comment.