2
0

(phone) Remove spaces from format

This commit is contained in:
Baptiste Arnaud
2023-03-20 07:41:07 +01:00
parent 16c261a8a5
commit 3d6d643a7e

View File

@@ -1,4 +1,4 @@
import { parsePhoneNumber } from 'libphonenumber-js'
export const formatPhoneNumber = (phoneNumber: string) =>
parsePhoneNumber(phoneNumber).formatInternational()
parsePhoneNumber(phoneNumber).formatInternational().replaceAll(' ', '')