Skip to content

Commit a594ae0

Browse files
committed
fix nan
1 parent 29fa5a6 commit a594ae0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/components/Pricing/PricingAddons

src/components/Pricing/PricingAddons/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const PricingAddons = ({ isYearly = false, setIsYearly ,currency,enterpri
9090
const monthlyPerUserCost = currentLearnerOption.monthlyPerUser;
9191
const yearlyPerUserCost = currentLearnerOption.yearlyPerUser;
9292
baseTotal = isYearly
93-
? yearlyPerUserCost * currentLearnerOption.learners * 12 / "yearly"
93+
? yearlyPerUserCost * currentLearnerOption.learners
9494
: monthlyPerUserCost * currentLearnerOption.learners;
9595
}
9696
} else {
@@ -488,7 +488,7 @@ export const PricingAddons = ({ isYearly = false, setIsYearly ,currency,enterpri
488488
if (selectedAddon?.id === "academy") {
489489
const theorySubAddon = selectedAddon?.subAddOns?.find(sub => sub.id === "academy-theory");
490490
if (theorySubAddon?.pricing && theorySubAddon.pricing[quantityIndex]) {
491-
const currentLearnerOption = theorySubAddon.pricing[quantityIndex];
491+
const currentLearnerOption = theorySubAddon.pricing[quantityIndex];
492492
const monthlyPerUserCost = currentLearnerOption.monthlyPerUser;
493493
const yearlyPerUserCost = currentLearnerOption.yearlyPerUser;
494494
const totalCost = isYearly

0 commit comments

Comments
 (0)