diff --git a/example.env.local b/example.env.local index 70baea3..8841c01 100644 --- a/example.env.local +++ b/example.env.local @@ -1,5 +1,5 @@ NEXT_PUBLIC_API_NAME = "Loan Facilities Dashboard" -NEXT_PUBLIC_API_VERSION = "1.25.4" +NEXT_PUBLIC_API_VERSION = "1.25.5" NEXT_PUBLIC_DEFAULT_LANGUAGE = "fa" NEXT_PUBLIC_DEFAULT_DIRECTION = "rtl" diff --git a/src/components/login/SendToken.jsx b/src/components/login/SendToken.jsx index 044ede9..85cb0e3 100644 --- a/src/components/login/SendToken.jsx +++ b/src/components/login/SendToken.jsx @@ -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) } diff --git a/src/components/login/SendUserData.jsx b/src/components/login/SendUserData.jsx index 19c7498..846f6d8 100644 --- a/src/components/login/SendUserData.jsx +++ b/src/components/login/SendUserData.jsx @@ -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;