🎨 fix format number

This commit is contained in:
Hugo Lextrait 2023-05-11 14:10:06 +02:00
parent c4ee5111d2
commit 48a8759e95

View File

@ -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;