We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99abc0a commit 5f4aa45Copy full SHA for 5f4aa45
src/app/modules/myinfo/myinfo.format.ts
@@ -17,7 +17,7 @@ const logger = createLoggerWithLabel(module)
17
/**
18
* Formats MyInfo attribute as phone number
19
* @param phone
20
- * @example +65 98654321
+ * @example +6598654321
21
* @returns Phone number if phone.nbr exists. Else return empty string.
22
*/
23
export const formatPhoneNumber = (
@@ -26,7 +26,7 @@ export const formatPhoneNumber = (
26
if (!phone || phone.unavailable || !phone.nbr.value) return ''
27
28
return phone.prefix.value && phone.areacode.value
29
- ? `${phone.prefix.value}${phone.areacode.value} ${phone.nbr.value}`
+ ? `${phone.prefix.value}${phone.areacode.value}${phone.nbr.value}`
30
: phone.nbr.value
31
}
32
0 commit comments