We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1af013d commit 0bef28fCopy full SHA for 0bef28f
src/components/SQLCourse/BuyButton.tsx
@@ -195,7 +195,10 @@ export function BuyButton(props: BuyButtonProps) {
195
</span>
196
) : (
197
<span className="relative flex items-center gap-2">
198
- {coursePricing?.flag} Buy Now ${coursePricing?.regionalPrice}
+ {coursePricing?.flag && coursePricing.isEligibleForDiscount
199
+ ? coursePricing.flag
200
+ : null}{' '}
201
+ Buy Now ${coursePricing?.regionalPrice}
202
<ArrowRightIcon className="h-5 w-5 transition-transform duration-300 ease-out group-hover:translate-x-1" />
203
204
)}
0 commit comments