From f7c8f5c452a18614682270edbb811ec7133b00bd Mon Sep 17 00:00:00 2001 From: Yangshun Date: Mon, 4 Aug 2025 13:42:36 +0800 Subject: [PATCH] [web] promotions/students: fix bug where generated promo code isn't showing --- .../promotions/student/PromotionsStudentDiscountCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/promotions/student/PromotionsStudentDiscountCard.tsx b/apps/web/src/components/promotions/student/PromotionsStudentDiscountCard.tsx index 752acdc08..f3a1ffb36 100644 --- a/apps/web/src/components/promotions/student/PromotionsStudentDiscountCard.tsx +++ b/apps/web/src/components/promotions/student/PromotionsStudentDiscountCard.tsx @@ -305,7 +305,7 @@ export function PromotionsStudentDiscountCard({ variant = 'full' }: Props) { const promoCodeToDisplay = promoCode ?? existingPromoCode ?? null; - if (promoCodeToDisplay && 1 > 2) { + if (promoCodeToDisplay) { return (