This commit is contained in:
Kenneth Jannette
2024-02-23 17:55:37 -06:00
parent e4d8cb66d1
commit 434280d3e4
4 changed files with 22 additions and 8 deletions

View File

@@ -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">