Skip to content

Commit

Permalink
fix: adds conditional small class to price ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
brobro10000 committed Oct 2, 2024
1 parent b1a9e7f commit 4f7ee5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/course/CourseSidebarPrice.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const CourseSidebarPrice = () => {
return <Skeleton containerTestId="course-price-skeleton" height={24} />;
}
const originalPriceDisplay = getContentPriceDisplay(coursePrice.listRange);
const hasPriceRange = coursePrice.listRange.length > 1;
const showOrigPrice = !enterpriseCustomer.hideCourseOriginalPrice;
const crossedOutOriginalPrice = (
<del>
Expand All @@ -36,7 +37,8 @@ const CourseSidebarPrice = () => {
defaultMessage="Priced reduced from:"
description="Message to indicate that the price has been reduced."
/>
</span>${originalPriceDisplay} {currency}
</span>
<span className={classNames({ small: hasPriceRange })}>${originalPriceDisplay} {currency}</span>
</del>
);

Expand Down

0 comments on commit 4f7ee5c

Please sign in to comment.