diff --git a/src/components/MyWallet/Popup/AddFundDollars.jsx b/src/components/MyWallet/Popup/AddFundDollars.jsx index 176dc10..c933d58 100644 --- a/src/components/MyWallet/Popup/AddFundDollars.jsx +++ b/src/components/MyWallet/Popup/AddFundDollars.jsx @@ -165,7 +165,9 @@ function AddFundDollars(props) { const _response = res.data; stateData.amount = Number(props.input); stateData.card = - tab === "previous" ? prevCardDetails["payment-card"] : { ...values }; + tab === "previous" + ? prevCardDetails["payment-card"] + : { ...values, cvv: values.cvv }; stateData.cardType = tab === "previous" ? "prev" : "new"; stateData = { ...stateData, ..._response }; @@ -461,7 +463,7 @@ function AddFundDollars(props) { name="cvv" placeholder="CVV" maxLength={3} - value={props.values.cvv.replace(/./g, "*")} + value={props.values.cvv} inputHandler={props.handleChange} blurHandler={props.handleBlur} error={props.errors.cvv}