Skip to content

Commit 9d29def

Browse files
authored
Merge pull request #7028 from Namanv0509/learner
Per learner price update in tooltip
2 parents 62fe668 + eac5abe commit 9d29def

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • src/components/Pricing/PricingAddons

src/components/Pricing/PricingAddons/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ export const PricingAddons = ({ isYearly = false, setIsYearly, currency, enterpr
349349
const multiplier = selectedSubAddOns["academy-practical"] ? 2 : 1;
350350
const totalPrice = pricePerUser * option.learners * multiplier;
351351
const period = isYearly ? "/year" : "/month";
352-
return `${option.learners} learners - ${formatPrice(totalPrice)}${period}`;
352+
return `per learner price - ${formatSliderPrice(
353+
(isYearly ? option.yearlyPerUser : option.monthlyPerUser) * (selectedSubAddOns["academy-practical"] ? 2 : 1), currency)}${isYearly ? "/yearly" : "/month"}`;
353354
}
354355
return "";
355356
}}
@@ -574,4 +575,4 @@ export const PricingAddons = ({ isYearly = false, setIsYearly, currency, enterpr
574575
</CssBaseline>
575576
</SistentThemeProvider>
576577
);
577-
};
578+
};

0 commit comments

Comments
 (0)