Skip to content

Commit 4ce9275

Browse files
committed
Per learner price update in tool tip
Signed-off-by: Namanv509 <namanverma00260@gmail.com>
1 parent 62fe668 commit 4ce9275

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/components/Pricing/PricingAddons

src/components/Pricing/PricingAddons/index.js

Lines changed: 2 additions & 1 deletion
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 / 12 : option.monthlyPerUser) * (selectedSubAddOns["academy-practical"] ? 2 : 1), currency)}${isYearly ? "/month" : "/month"}`;
353354
}
354355
return "";
355356
}}

0 commit comments

Comments
 (0)