From 6e4dceda0c6b6f1d8156eb24590e74f62d60586e Mon Sep 17 00:00:00 2001 From: smanylov Date: Tue, 16 Dec 2025 21:04:55 +0700 Subject: [PATCH] set start number 7 for phone mask --- src/app/ui/inputs/phone-input.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/ui/inputs/phone-input.tsx b/src/app/ui/inputs/phone-input.tsx index 9c0faf0..61c3a6a 100644 --- a/src/app/ui/inputs/phone-input.tsx +++ b/src/app/ui/inputs/phone-input.tsx @@ -22,8 +22,8 @@ export default function PhoneInput({ phoneState }: PhoneInputProps) { } const limitedDigits = digitsOnly.slice(0, 11); - const countryCode = limitedDigits.startsWith('8') ? '8' : '7'; - const phoneNumber = limitedDigits.startsWith('8') || limitedDigits.startsWith('7') + const countryCode = 7; + const phoneNumber = limitedDigits.startsWith('7') ? limitedDigits.slice(1) : limitedDigits;