This commit is contained in:
Kenneth Jannette
2024-01-28 23:19:06 -06:00
parent b06aa1f053
commit 926b69695f
4 changed files with 56 additions and 28 deletions

View File

@@ -26,8 +26,9 @@ const PaymentModal = ({
const monthlySubscriptionPriceToday = selectedPlan[0].pricing[0].amount;
const annualSubscriptionPriceToday = selectedPlan[0].pricing[1].amount * 12;
const additionalAccountsMonthlyPriceToday =
selectedPlan[0].pricing[2].amount * numberOfAccountsToAdd;
const additionalAccountsMonthlyPriceToday = selectedPlan[0].pricing[2].amount
? selectedPlan[0].pricing[2].amount * numberOfAccountsToAdd
: null;
const additionalAccountsAnnualPriceToday =
additionalAccountsMonthlyPriceToday * 12;