Merge branch 'bugfix/yasi_fixed_login_code' into 'develop'

This commit is contained in:
AmirHossein Mahmoodi
2023-12-20 11:52:30 +00:00
2 changed files with 15 additions and 1 deletions

View File

@@ -98,7 +98,20 @@ const SendTokenComponent = ({
placeholder={t(
"LoginPage.text_field_enter_your_verification_code"
)}
type={"text"}
value={props.values.verification_code}
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)
}

View File

@@ -81,6 +81,7 @@ const SendUserDataComponent = ({
placeholder={t(
"LoginPage.text_field_enter_your_phone_number"
)}
value={props.values.phone_number}
type={"tel"}
onChange={(event) => {
const inputValue = event.target.value;