more
This commit is contained in:
@@ -146,6 +146,10 @@ const SignupPage = () => {
|
||||
|
||||
const validatePaymentData = () => {
|
||||
const newPaymentData = getValidatedFormData(paymentData, paymentfields);
|
||||
console.log(
|
||||
"````````````````````````````````````````newPaymentData",
|
||||
newPaymentData
|
||||
);
|
||||
const hasErrors = isFormDataHasErrors(newPaymentData);
|
||||
setPaymentData(newPaymentData);
|
||||
return hasErrors ? null : objectMap(({ value }) => value, newPaymentData);
|
||||
@@ -275,7 +279,6 @@ const SignupPage = () => {
|
||||
};
|
||||
|
||||
const handleAdd = () => {
|
||||
//add accounts, close section
|
||||
setShowAddAccount(!showAddAccount);
|
||||
setShowPaymentModal(true);
|
||||
};
|
||||
@@ -382,8 +385,6 @@ const SignupPage = () => {
|
||||
// ******************** END STRIPE PAYMENT API CALL ******************** //
|
||||
|
||||
const handleSignup = async (e) => {
|
||||
e.preventDefault();
|
||||
|
||||
const paymentDataValues = validatePaymentData();
|
||||
if (paymentDataValues === null) {
|
||||
return;
|
||||
@@ -625,6 +626,9 @@ const SignupPage = () => {
|
||||
<h5 className="signup-subheader-text">
|
||||
Select a subscription plan
|
||||
</h5>
|
||||
<p className="subscribe-header-sub">
|
||||
← Click left/right for more options →
|
||||
</p>
|
||||
</div>
|
||||
<div className="plan-header-left">
|
||||
<div className="select-toggle-box">
|
||||
|
||||
Reference in New Issue
Block a user