ToUpper the country code
This commit is contained in:
parent
c12ef8829c
commit
ecc0552e89
1 changed files with 3 additions and 2 deletions
|
@ -47,8 +47,9 @@ export default class CountryDropdown extends React.Component {
|
|||
this._getShortOption = this._getShortOption.bind(this);
|
||||
|
||||
let defaultCountry = COUNTRIES[0];
|
||||
if (SdkConfig.get()["defaultCountryCode"]) {
|
||||
const country = COUNTRIES.find(c => c.iso2 === SdkConfig.get()["defaultCountryCode"]);
|
||||
const defaultCountryCode = SdkConfig.get()["defaultCountryCode"];
|
||||
if (defaultCountryCode) {
|
||||
const country = COUNTRIES.find(c => c.iso2 === defaultCountryCode.toUpperCase());
|
||||
if (country) defaultCountry = country;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue