🎨 fix format number
This commit is contained in:
parent
c4ee5111d2
commit
48a8759e95
@ -75,6 +75,7 @@ export default class UserFolderHeader extends React.Component<IProps, IState> {
|
|||||||
|
|
||||||
private formatPhoneNumber(phoneNumber: string): string {
|
private formatPhoneNumber(phoneNumber: string): string {
|
||||||
if (!phoneNumber) return "";
|
if (!phoneNumber) return "";
|
||||||
|
phoneNumber = phoneNumber.replace(" ", "");
|
||||||
const output = phoneNumber.split("").map((char, index) => {
|
const output = phoneNumber.split("").map((char, index) => {
|
||||||
if (index % 2) return char + " ";
|
if (index % 2) return char + " ";
|
||||||
return char;
|
return char;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user