diff --git a/packages/ui/src/hooks/use-phone-number.ts b/packages/ui/src/hooks/use-phone-number.ts index 763973c56..7686eeb5c 100644 --- a/packages/ui/src/hooks/use-phone-number.ts +++ b/packages/ui/src/hooks/use-phone-number.ts @@ -14,7 +14,7 @@ import { useState } from 'react'; import { getDefaultCountryCallingCode, getCountryList } from '@/utils/country-code'; -export type { CountryCallingCode } from 'libphonenumber-js'; +export type { CountryCallingCode } from 'libphonenumber-js/mobile'; export type CountryMetaData = { countryCode: CountryCode; diff --git a/packages/ui/src/utils/country-code.ts b/packages/ui/src/utils/country-code.ts index d90eb2c87..d19633166 100644 --- a/packages/ui/src/utils/country-code.ts +++ b/packages/ui/src/utils/country-code.ts @@ -4,7 +4,7 @@ import { CountryCode, CountryCallingCode, getCountryCallingCode, -} from 'libphonenumber-js'; +} from 'libphonenumber-js/mobile'; export const fallbackCountryCode = 'US';