From 96327027c2ae0eb6214794138a715f974b1594aa Mon Sep 17 00:00:00 2001 From: gets0ul Date: Sat, 26 Jun 2021 21:53:27 +0700 Subject: [PATCH 1/2] fix: member country is not displayed in settings use homeCountryCode or competitionCountryCode as displayed country in member settings page when country is not found in the basic_info traits --- src/shared/components/Settings/Profile/BasicInfo/index.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/shared/components/Settings/Profile/BasicInfo/index.jsx b/src/shared/components/Settings/Profile/BasicInfo/index.jsx index e1379030dc..89099d58f5 100644 --- a/src/shared/components/Settings/Profile/BasicInfo/index.jsx +++ b/src/shared/components/Settings/Profile/BasicInfo/index.jsx @@ -455,6 +455,8 @@ export default class BasicInfo extends ConsentComponent { key: country.countryCode, name: country.country, })); + const countryCode = newBasicInfo.homeCountryCode || newBasicInfo.competitionCountryCode; + const currentCountry = newBasicInfo.country || countries.find(c => c.key === countryCode); return (
@@ -591,7 +593,7 @@ export default class BasicInfo extends ConsentComponent {