mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-22 15:56:15 -04:00
fix(phone-parser): use default country code
This commit is contained in:
parent
83a7b3bae9
commit
a43c546e34
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue