We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The phone number should have a French format and a French flag should appear
The error "No country data for 'gp'" appears and no flag or format is correctly selected by default
geoIpLookup: callback => { fetch("https://ipapi.co/json") .then(res => res.json()) .then(data => callback(data.country_code)) .catch(() => callback("fr")); },
The text was updated successfully, but these errors were encountered:
Can you log the value of data.country_code that is being passed to the callback?
data.country_code
callback
Because when I test it, passing "gp", it seems to work fine: https://codepen.io/jackocnr/pen/mdYdbPa
Some more questions:
Sorry, something went wrong.
Closing due to inactivity.
No branches or pull requests
Steps to reproduce
Expected behaviour
The phone number should have a French format and a French flag should appear
Actual behaviour
The error "No country data for 'gp'" appears and no flag or format is correctly selected by default
Initialisation options
The text was updated successfully, but these errors were encountered: