From 433c275f40475a78fc28616228f3223f765b6469 Mon Sep 17 00:00:00 2001 From: rassadin11 Date: Fri, 22 May 2026 23:12:46 +0300 Subject: [PATCH] F --- src/pages/profile/ui/ProfilePage.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/profile/ui/ProfilePage.tsx b/src/pages/profile/ui/ProfilePage.tsx index 5a6d189..ad3a54c 100644 --- a/src/pages/profile/ui/ProfilePage.tsx +++ b/src/pages/profile/ui/ProfilePage.tsx @@ -26,6 +26,10 @@ export function ProfilePage() { } }, [data?.phone]) + function handlePhoneChange(value: string) { + setPhone(value.replace(/[^\d+\s()-]/g, '')) + } + function handlePhoneBlur() { const next = phone.trim() if (next === savedPhone || updatePhone.isPending) return @@ -74,7 +78,7 @@ export function ProfilePage() { - +