fix(frontend): account phone stored with a plus is not shown with two
This commit is contained in:
1 parent
aff8a9e443
commit
e228d999dd
4 files changed
+10
-5
No files matched your search
@@ -47,3 +47,7 @@ export function initials(name: string): string {
|
||||
const last = lastWord ? lastWord[0] : "";
|
||||
return (first + last).toUpperCase();
|
||||
}
|
||||
|
||||
export function formatPhone(phone: string): string {
|
||||
return phone.startsWith("+") ? phone : `+${phone}`;
|
||||
}
|
||||
Reference in new issue
Block a user