Phone number showed with dot
This commit is contained in:
parent
990d65ef49
commit
274c285aa8
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "PORT=5005 next dev",
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
|
@ -101,10 +101,11 @@ export default class UserFolderHeader extends React.Component<IProps, IState> {
|
||||
return phoneNumber;
|
||||
}
|
||||
const output = phoneNumber.split("").map((char, index) => {
|
||||
if (index % 2) return char + " ";
|
||||
if (index % 2) return char + ".";
|
||||
return char;
|
||||
});
|
||||
return output.join("");
|
||||
const joinedOutput = output.join("");
|
||||
return joinedOutput.substring(0, joinedOutput.length - 1);
|
||||
}
|
||||
|
||||
private onEditClick(): void {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user