set start number 7 for phone mask
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user