fixed login_code

This commit is contained in:
Yasiu1376
2023-12-20 15:14:36 +03:30
parent 9ecf02e005
commit e2aa6e1138

View File

@@ -98,7 +98,19 @@ const SendTokenComponent = ({
placeholder={t(
"LoginPage.text_field_enter_your_verification_code"
)}
type={"text"}
type={"tel"}
onChange={(event) => {
const inputValue = event.target.value;
if (isNaN(Number(inputValue))) {
return;
}
props.handleChange({
target: {
name: "verification_code",
value: inputValue,
},
});
}}
error={
!!(props.touched.verification_code && props.errors.verification_code)
}