Skip to content

Commit

Permalink
fixe: country not updating when address selected from suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ishpaul777 committed Oct 18, 2023
1 parent 503df1e commit 83c2f53
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 83c2f53

Please sign in to comment.