From 83c2f5389608ef32f0ebc36900893dccc31cb6eb Mon Sep 17 00:00:00 2001 From: Ishpaul Singh Date: Wed, 18 Oct 2023 22:52:56 +0530 Subject: [PATCH] fixe: country not updating when address selected from suggestions --- src/pages/settings/Profile/PersonalDetails/AddressPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/settings/Profile/PersonalDetails/AddressPage.js b/src/pages/settings/Profile/PersonalDetails/AddressPage.js index b8d91b4769fc..3a49b6901035 100644 --- a/src/pages/settings/Profile/PersonalDetails/AddressPage.js +++ b/src/pages/settings/Profile/PersonalDetails/AddressPage.js @@ -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 (