more
This commit is contained in:
@@ -44,13 +44,24 @@ const PaymentModal = ({
|
||||
(selectedPlan[0]?.value === "seniorPartner" && numberOfAccountsToAdd > 0);
|
||||
|
||||
const planName = selectedPlan[0].name ? selectedPlan[0].name : null;
|
||||
const billingPeriod = isAnnual ? "Annually" : "Monthly";
|
||||
const amountToday = isAnnual
|
||||
? annualSubscriptionPriceToday
|
||||
: monthlySubscriptionPriceToday;
|
||||
const planValue = selectedPlan[0].value ? selectedPlan[0].value : null;
|
||||
const billingPeriod =
|
||||
planValue === "ofCounsel"
|
||||
? "Single Purchase"
|
||||
: isAnnual
|
||||
? "Annually"
|
||||
: "Monthly";
|
||||
const amountToday =
|
||||
planValue === "ofCounsel"
|
||||
? 59
|
||||
: isAnnual
|
||||
? annualSubscriptionPriceToday
|
||||
: monthlySubscriptionPriceToday;
|
||||
|
||||
const totalToday = amountToday + extraAccountsPrice;
|
||||
const totalToday =
|
||||
planValue === "ofCounsel" ? 59 : amountToday + extraAccountsPrice;
|
||||
|
||||
const isCounsel = planValue === "ofCounsel" ? true : false;
|
||||
const handleSignupClick = () => {
|
||||
//clear fields
|
||||
handleSignup();
|
||||
@@ -95,7 +106,7 @@ const PaymentModal = ({
|
||||
<div className="paymodal-summary-right">Total today:</div>
|
||||
<div className="paymodal-summary-left">${totalToday}</div>
|
||||
</div>
|
||||
{isAnnual ? (
|
||||
{isAnnual && !isCounsel ? (
|
||||
<div className="payment-modal-text-wrapper">
|
||||
<div className="paymodal-summary-right"></div>
|
||||
<div className="paymodal-summary-left-bonus">
|
||||
@@ -171,15 +182,3 @@ const PaymentModal = ({
|
||||
};
|
||||
|
||||
export default PaymentModal;
|
||||
|
||||
/*
|
||||
const tempExtraAccountsPrice = isAnnual
|
||||
? additionalAccountsAnnualPriceToday
|
||||
: additionalAccountsMonthlyPriceToday;
|
||||
|
||||
const extraAccountsPrice =
|
||||
tempExtraAccountsPrice === NaN || tempExtraAccountsPrice === undefined
|
||||
? 0
|
||||
: 0;
|
||||
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user