diff --git a/src/Components/Modals/PaymentModal.js b/src/Components/Modals/PaymentModal.js index 8c494b0..38f0c00 100644 --- a/src/Components/Modals/PaymentModal.js +++ b/src/Components/Modals/PaymentModal.js @@ -32,13 +32,14 @@ const PaymentModal = ({ const additionalAccountsAnnualPriceToday = additionalAccountsMonthlyPriceToday * 12; - const tempExtraAccountsPrice = isAnnual + console.log( + "additionalAccountsAnnualPriceToday", + additionalAccountsAnnualPriceToday + ); + + const extraAccountsPrice = isAnnual ? additionalAccountsAnnualPriceToday : additionalAccountsMonthlyPriceToday; - const extraAccountsPrice = - tempExtraAccountsPrice === NaN || tempExtraAccountsPrice === undefined - ? 0 - : 0; const showAdditionaLAccountsView = (selectedPlan[0]?.value === "partner" && numberOfAccountsToAdd > 0) || (selectedPlan[0]?.value === "seniorPartner" && numberOfAccountsToAdd > 0); @@ -49,12 +50,11 @@ const PaymentModal = ({ ? annualSubscriptionPriceToday : monthlySubscriptionPriceToday; const totalToday = amountToday + extraAccountsPrice; - console.log("amoutnToday", amountToday); - console.log("extraAccountsPrice", extraAccountsPrice); function handleValidateAndPay() { handleSignup(totalToday); } + return ( @@ -160,21 +160,13 @@ const PaymentModal = ({ export default PaymentModal; /* + const tempExtraAccountsPrice = isAnnual + ? additionalAccountsAnnualPriceToday + : additionalAccountsMonthlyPriceToday; - {showAdditionaLAccountsView ? ( -
-
- Additional Accounts: -
-
- {isAnnual - ? additionalAccountsAnnualPriceToday - : additionalAccountsMonthlyPriceToday} -
-
- ) : ( - <> - )} - - - */ + const extraAccountsPrice = + tempExtraAccountsPrice === NaN || tempExtraAccountsPrice === undefined + ? 0 + : 0; + + */ diff --git a/src/Components/SignupPage/SignupPage.js b/src/Components/SignupPage/SignupPage.js index 274d5e6..b949023 100644 --- a/src/Components/SignupPage/SignupPage.js +++ b/src/Components/SignupPage/SignupPage.js @@ -58,12 +58,11 @@ const SignupPage = () => { }; const handleChangeAccountSelect = (e, name) => { - console.log("~~~~~~~~~~~~~~e.target.value, name", e.target.value, name); const num = e.target.value; const temp = Number(num); setNumberOfAccountsToAdd(temp); }; - console.log("numberOfAccountsToAdd", numberOfAccountsToAdd); + const handleChangePaymentInput = (e, name) => { const newPaymentData = handleFormDataChange( e, @@ -84,7 +83,6 @@ const SignupPage = () => { }); setSelectedPlan(tempPlan); - console.log("selectedPlan", selectedPlan); setActiveRadioOption(tempPlan[0].value); }; @@ -248,7 +246,6 @@ const SignupPage = () => { }; const handleAddAccounts = () => { - console.log("selectedPlan", selectedPlan); setShowAddAccount(!showAddAccount); }; @@ -341,6 +338,9 @@ const SignupPage = () => { setIsBusy(true); if (paymentDataValues && dataValues) { + console.log( + "tryblock ~~~ tryblock ~~~ tryblock ~~~ tryblock ~~~ tryblock ~~~ " + ); try { const userCredential = await createUserWithEmailAndPassword( auth, @@ -383,7 +383,6 @@ const SignupPage = () => { selectedPlan[0].value === "seniorPartner" || selectedPlan[0].value === "partner"; - console.log("isAnnial on signup page", isAnnual); return (
@@ -555,7 +554,7 @@ const SignupPage = () => { />