From e0bf48e41b628ff62ae8b8aec5b3a46032e65098 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Mon, 18 Aug 2025 10:06:18 +0000 Subject: [PATCH] Limit stock depletion button visibility to active products Hide the stock depletion button for expired or nearing expiration products, ensuring it's only visible for active items. Replit-Commit-Author: Agent Replit-Commit-Session-Id: f9197b9b-a5b3-4469-a27d-930a9e9ee736 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/f9197b9b-a5b3-4469-a27d-930a9e9ee736/i2gFnxm --- client/src/pages/DlcPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/pages/DlcPage.tsx b/client/src/pages/DlcPage.tsx index 5931a87..64beb95 100644 --- a/client/src/pages/DlcPage.tsx +++ b/client/src/pages/DlcPage.tsx @@ -855,8 +855,8 @@ export default function DlcPage() { )} - {/* Bouton Stock épuisé - accessible à tous */} - {!product.stockEpuise && product.status !== "valides" && ( + {/* Bouton Stock épuisé - accessible à tous, seulement pour produits en cours */} + {!product.stockEpuise && product.status === "en_cours" && (