hbb20 / hbb20/CountryCodePickerProject
Russian Federation phone number automatically detected as Kazakhstan
- Dominant language
- Java
- Stars
- 1.5k
- Forks
- 509
- PR merge metrics
- No merged PRs in 30d
Description
Russian Federation and Kazakhstan have the same dialing code `+7`. Anyway, the country can be distinguish by DEF code.
DEF code for Kazakhstan is `6XX` or `7XX`. For Russian Federation, I don't see strict rules.
Here is the case when country is detected as Kazakhstan when it is Russian Federation:
**Preconditions**
1. Select `Russian Federation` manually
2. Enter valid phone number: `+7 913 XXX XX XX`
3. Save phone number. In my case, it is sent to the backend
**Steps to reproduce**
1. Put saved phone number in the widget without adding `Russian Federation` to `preferredCountries`
**Result** : `Kazakhstan` detected
**Expected result**: `Russian Federation` detected
I assume `Kazakhstan` is selected by default because of the alphabet order.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.