Skip to content

Commit

Permalink
fix(ui): fix multiple libphonmenumber packed bug (#1544)
Browse files Browse the repository at this point in the history
fix multiple libphonmenumber packed bug
  • Loading branch information
simeng-li authored Jul 14, 2022
1 parent 6b9ad58 commit e06f8d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/hooks/use-phone-number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/utils/country-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
CountryCode,
CountryCallingCode,
getCountryCallingCode,
} from 'libphonenumber-js';
} from 'libphonenumber-js/mobile';

export const fallbackCountryCode = 'US';

Expand Down

0 comments on commit e06f8d0

Please sign in to comment.