Skip to content

Commit

Permalink
Merge pull request #29890 from ishpaul777/fix/country-not-changing-fr…
Browse files Browse the repository at this point in the history
…om-autosuggestion

Fix/country not changing from autosuggestion
  • Loading branch information
lakchote authored Oct 19, 2023
2 parents b38171d + 83c2f53 commit eb5fec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/settings/Profile/PersonalDetails/AddressPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ function AddressPage({privatePersonalDetails, route}) {
}, []);

useEffect(() => {
if (!countryFromUrl || countryFromUrl === currentCountry) {
if (!countryFromUrl) {
return;
}
handleAddressChange(countryFromUrl, 'country');
}, [countryFromUrl, handleAddressChange, currentCountry]);
}, [countryFromUrl, handleAddressChange]);

return (
<ScreenWrapper
Expand Down

0 comments on commit eb5fec2

Please sign in to comment.