From 0bef28fa209ce6e875fac6d0af3bc2770073cc2e Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 27 Jan 2025 16:13:08 +0000 Subject: [PATCH] Update flag issue --- src/components/SQLCourse/BuyButton.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/SQLCourse/BuyButton.tsx b/src/components/SQLCourse/BuyButton.tsx index 7112c8b1b..db99b03f6 100644 --- a/src/components/SQLCourse/BuyButton.tsx +++ b/src/components/SQLCourse/BuyButton.tsx @@ -195,7 +195,10 @@ export function BuyButton(props: BuyButtonProps) { ) : ( - {coursePricing?.flag} Buy Now ${coursePricing?.regionalPrice} + {coursePricing?.flag && coursePricing.isEligibleForDiscount + ? coursePricing.flag + : null}{' '} + Buy Now ${coursePricing?.regionalPrice} )}