fix(phone-parser): use default country code

This commit is contained in:
Corentin Thomasset 2023-05-07 13:04:55 +02:00
parent 83a7b3bae9
commit a43c546e34
No known key found for this signature in database
GPG key ID: DBD997E935996158
2 changed files with 4 additions and 4 deletions

View file

@ -50,7 +50,7 @@ const validation = useValidation({
const parsedDetails = computed(() => {
if (!validation.isValid) return undefined;
const parsed = withDefaultOnError(() => parsePhoneNumber(rawPhone.value, 'FR'), undefined);
const parsed = withDefaultOnError(() => parsePhoneNumber(rawPhone.value, defaultCountryCode.value), undefined);
if (!parsed) return undefined;