We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd1ad7a + 753a4b5 commit 36fce9eCopy full SHA for 36fce9e
src/shared/components/Settings/Profile/BasicInfo/index.jsx
@@ -95,6 +95,16 @@ export default class BasicInfo extends ConsentComponent {
95
inputChanged: false,
96
});
97
}
98
+ if (nextProps.lookupData) {
99
+ const { countries } = nextProps.lookupData;
100
+ const { newBasicInfo } = this.state;
101
+ if (!newBasicInfo.country) {
102
+ const code = newBasicInfo.homeCountryCode || newBasicInfo.competitionCountryCode;
103
+ const { country } = countries.find(c => c.countryCode === code) || {};
104
+ newBasicInfo.country = country;
105
+ this.setState({ newBasicInfo });
106
+ }
107
108
109
110
onCheckFormValue(newBasicInfo) {
0 commit comments