File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
src/shared/components/Settings/Profile/BasicInfo Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -348,6 +348,7 @@ workflows:
348
348
branches :
349
349
only :
350
350
- free
351
+ - fix-country-setting-page
351
352
# This is alternate dev env for parallel testing
352
353
- " build-qa " :
353
354
context : org-global
@@ -368,7 +369,7 @@ workflows:
368
369
filters : &filters-staging
369
370
branches :
370
371
only :
371
- - fix-env-value-issuer
372
+ - develop
372
373
# Production builds are exectuted
373
374
# when PR is merged to the master
374
375
# Don't change anything in this configuration
Original file line number Diff line number Diff line change @@ -95,6 +95,16 @@ export default class BasicInfo extends ConsentComponent {
95
95
inputChanged : false ,
96
96
} ) ;
97
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
+ }
98
108
}
99
109
100
110
onCheckFormValue ( newBasicInfo ) {
You can’t perform that action at this time.
0 commit comments