From ecc0552e89fdf9802014c94d30cdd1fe69d38451 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Sat, 1 Jun 2019 09:12:09 -0600 Subject: [PATCH] ToUpper the country code --- src/components/views/auth/CountryDropdown.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/views/auth/CountryDropdown.js b/src/components/views/auth/CountryDropdown.js index 63914319c8..d8aa88c798 100644 --- a/src/components/views/auth/CountryDropdown.js +++ b/src/components/views/auth/CountryDropdown.js @@ -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; }