From d82ecfd474261e47d4fcf48e5cc84e4787f50b12 Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 5 Oct 2023 00:15:56 +0700 Subject: [PATCH 1/2] fix city field should display when login again --- src/pages/settings/Profile/PersonalDetails/AddressPage.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/settings/Profile/PersonalDetails/AddressPage.js b/src/pages/settings/Profile/PersonalDetails/AddressPage.js index f7766756bf22..fba0a3805976 100644 --- a/src/pages/settings/Profile/PersonalDetails/AddressPage.js +++ b/src/pages/settings/Profile/PersonalDetails/AddressPage.js @@ -88,6 +88,8 @@ function AddressPage({privatePersonalDetails, route}) { } setState(address.state); setCurrentCountry(address.country); + setCity(address.city); + }, [address]); /** From 8e80bda18dac19bacbcb63034a151036124baa62 Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 5 Oct 2023 00:52:23 +0700 Subject: [PATCH 2/2] fix lint --- src/pages/settings/Profile/PersonalDetails/AddressPage.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/settings/Profile/PersonalDetails/AddressPage.js b/src/pages/settings/Profile/PersonalDetails/AddressPage.js index fba0a3805976..b029a2085877 100644 --- a/src/pages/settings/Profile/PersonalDetails/AddressPage.js +++ b/src/pages/settings/Profile/PersonalDetails/AddressPage.js @@ -89,7 +89,6 @@ function AddressPage({privatePersonalDetails, route}) { setState(address.state); setCurrentCountry(address.country); setCity(address.city); - }, [address]); /**