another fix

This commit is contained in:
2023-07-17 17:00:59 +01:00
parent 4bb3a11261
commit 06a7386211
@@ -47,7 +47,7 @@ const validationSchema = Yup.object().shape({
.min(1, "1 chars min.")
.max(2, "2 chars max.")
.required("required"),
cvv: Yup.number()
cvv: Yup.string()
.min(3, "3 chars min.")
.max(4, "4 chars max.")
.required("required"),
@@ -451,7 +451,7 @@ function AddFundDollars(props) {
spanTag="*"
iconName={cardIcons}
label="CVV"
type="password"
type="text"
name="cvv"
placeholder="CVV"
maxLength={3}
@@ -484,7 +484,7 @@ function AddFundDollars(props) {
fieldClass="px-6"
spanTag="*"
label="Postal Code"
type="text"
type="number"
name="code"
placeholder="Postal Code"
value={props.values.code}
@@ -502,7 +502,7 @@ function AddFundDollars(props) {
type="text"
name="state"
placeholder="State"
value={props.values.state.toLocaleUpperCase}
value={props.values.state.toUpperCase()}
inputHandler={props.handleChange}
blurHandler={props.handleBlur}
error={props.errors.state}