Skip to content

Commit 0bef28f

Browse files
committed
Update flag issue
1 parent 1af013d commit 0bef28f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/SQLCourse/BuyButton.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,10 @@ export function BuyButton(props: BuyButtonProps) {
195195
</span>
196196
) : (
197197
<span className="relative flex items-center gap-2">
198-
{coursePricing?.flag} Buy Now ${coursePricing?.regionalPrice}
198+
{coursePricing?.flag && coursePricing.isEligibleForDiscount
199+
? coursePricing.flag
200+
: null}{' '}
201+
Buy Now ${coursePricing?.regionalPrice}
199202
<ArrowRightIcon className="h-5 w-5 transition-transform duration-300 ease-out group-hover:translate-x-1" />
200203
</span>
201204
)}

0 commit comments

Comments
 (0)