|
@@ -55,7 +55,7 @@ export class ContactAddress {
|
|
|
|
|
|
|
|
public static formatAddress(type: string, address: string) {
|
|
public static formatAddress(type: string, address: string) {
|
|
|
if (type === 'phone' && ContactAddress.isValidPhoneNumber(address)) {
|
|
if (type === 'phone' && ContactAddress.isValidPhoneNumber(address)) {
|
|
|
- return ContactAddress.formatPhoneNumber(address);
|
|
|
|
|
|
|
+ return ContactAddress.formatPhoneNumber(ContactAddress.parsePhoneNumber(address) || address);
|
|
|
}
|
|
}
|
|
|
return address;
|
|
return address;
|
|
|
}
|
|
}
|