fix resetting phone bug

This commit is contained in:
Gucheng Wang
2023-02-25 15:46:54 +08:00
parent 181e7c8c7d
commit f5672357e6
14 changed files with 29 additions and 25 deletions

View File

@ -208,6 +208,10 @@ export function initCountries() {
return countries;
}
export function getCountryCode(country) {
return phoneNumber.getCountryCallingCode(country);
}
export function getCountryCodeData(countryCodes = phoneNumber.getCountries()) {
return countryCodes?.map((countryCode) => {
if (phoneNumber.isSupportedCountry(countryCode)) {