more
This commit is contained in:
@@ -42,7 +42,6 @@ const SignupPage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleChangePaymentInput = (e, name) => {
|
const handleChangePaymentInput = (e, name) => {
|
||||||
console.log("e, name", e, name);
|
|
||||||
const newPaymentData = handleFormDataChange(
|
const newPaymentData = handleFormDataChange(
|
||||||
e,
|
e,
|
||||||
name,
|
name,
|
||||||
@@ -62,7 +61,6 @@ const SignupPage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const validatePaymentData = () => {
|
const validatePaymentData = () => {
|
||||||
console.log("paymentData", paymentData);
|
|
||||||
const newPaymentData = getValidatedFormData(paymentData, paymentfields);
|
const newPaymentData = getValidatedFormData(paymentData, paymentfields);
|
||||||
const hasErrors = isFormDataHasErrors(newPaymentData);
|
const hasErrors = isFormDataHasErrors(newPaymentData);
|
||||||
setPaymentData(newPaymentData);
|
setPaymentData(newPaymentData);
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ export const paymentfields = {
|
|||||||
cardLastName: {
|
cardLastName: {
|
||||||
required: true,
|
required: true,
|
||||||
label: "Card Last Name",
|
label: "Card Last Name",
|
||||||
maxLength: 45,
|
|
||||||
type: "cardLastName",
|
type: "cardLastName",
|
||||||
},
|
},
|
||||||
cardNumber: {
|
cardNumber: {
|
||||||
|
|||||||
Reference in New Issue
Block a user