diff --git a/src/shared/components/Settings/Profile/BasicInfo/index.jsx b/src/shared/components/Settings/Profile/BasicInfo/index.jsx index e1379030dc..aa7e8c9711 100644 --- a/src/shared/components/Settings/Profile/BasicInfo/index.jsx +++ b/src/shared/components/Settings/Profile/BasicInfo/index.jsx @@ -95,6 +95,16 @@ export default class BasicInfo extends ConsentComponent { inputChanged: false, }); } + if (nextProps.lookupData) { + const { countries } = nextProps.lookupData; + const { newBasicInfo } = this.state; + if (!newBasicInfo.country) { + const code = newBasicInfo.homeCountryCode || newBasicInfo.competitionCountryCode; + const { country } = countries.find(c => c.countryCode === code) || {}; + newBasicInfo.country = country; + this.setState({ newBasicInfo }); + } + } } onCheckFormValue(newBasicInfo) {