From 2e9064805b95d68c404a0ea7bd041b2595fc1b25 Mon Sep 17 00:00:00 2001 From: Sushil Shinde Date: Sat, 26 Jun 2021 11:15:14 +0530 Subject: [PATCH 1/7] fix: Fixed country field in setting page --- .circleci/config.yml | 1 + src/shared/components/Settings/Profile/BasicInfo/index.jsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 101a1bc599..1af6b8ef2d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -369,6 +369,7 @@ workflows: branches: only: - develop + - fix-country-setting-page # Production builds are exectuted # when PR is merged to the master # Don't change anything in this configuration diff --git a/src/shared/components/Settings/Profile/BasicInfo/index.jsx b/src/shared/components/Settings/Profile/BasicInfo/index.jsx index e1379030dc..af5f10043a 100644 --- a/src/shared/components/Settings/Profile/BasicInfo/index.jsx +++ b/src/shared/components/Settings/Profile/BasicInfo/index.jsx @@ -801,7 +801,7 @@ export default class BasicInfo extends ConsentComponent { Date: Sat, 26 Jun 2021 11:31:31 +0530 Subject: [PATCH 3/7] fix: fixing country dropdown on settings page --- src/shared/components/Settings/Profile/BasicInfo/index.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/components/Settings/Profile/BasicInfo/index.jsx b/src/shared/components/Settings/Profile/BasicInfo/index.jsx index 7ee3fb8113..c3a4f0374d 100644 --- a/src/shared/components/Settings/Profile/BasicInfo/index.jsx +++ b/src/shared/components/Settings/Profile/BasicInfo/index.jsx @@ -591,7 +591,9 @@ export default class BasicInfo extends ConsentComponent { Date: Sat, 26 Jun 2021 21:53:27 +0700 Subject: [PATCH 6/7] 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 {