Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getCountryCode returns undefined #23

Closed
aalega2 opened this issue May 5, 2016 · 2 comments
Closed

getCountryCode returns undefined #23

aalega2 opened this issue May 5, 2016 · 2 comments
Assignees

Comments

@aalega2
Copy link

aalega2 commented May 5, 2016

Hi,

I like the plugin, however everything works except for getCountryCode. Any ideas?

@rsertelon
Copy link
Owner

Hi,

I'll try to look into it this week, no promise ;)

@rsertelon rsertelon self-assigned this May 9, 2016
@TBxy
Copy link
Contributor

TBxy commented Jun 4, 2016

toUpperCase() is missing (holder.codeToCountry[key])

for(var key in holder.codeToCountry) {
  holder.countryToCode[holder.codeToCountry[key].toUpperCase()] = key;
  holder.countryCodes.push(key);
}

rsertelon added a commit that referenced this issue Apr 17, 2018
#23 getCountryCode returns undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants