From 054c045ad262cde4dd3c3572840e15c857e234f5 Mon Sep 17 00:00:00 2001 From: kudindmitriy Date: Tue, 3 Feb 2026 17:24:13 +0200 Subject: [PATCH] Bob AI: Show "Limited Seats" warning only for courses with... --- src/components/sections/product/ProductCardOne.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/sections/product/ProductCardOne.tsx b/src/components/sections/product/ProductCardOne.tsx index c7aa1eb..655b27d 100644 --- a/src/components/sections/product/ProductCardOne.tsx +++ b/src/components/sections/product/ProductCardOne.tsx @@ -40,6 +40,7 @@ const ProductCardItem = memo(({ cardNameClassName = "", cardPriceClassName = "", }: ProductCardItemProps) => { + const priceNumber = parseFloat(product.price.replace(/[^0-9.-]+/g, "")); return (
Most Popular )} + {priceNumber < 14000 && ( + Limited Seats + )}

{product.name}