From 20c4cb1a40dbf61254122b97c7046c45958b324e Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Fri, 10 Apr 2026 12:50:15 +0200 Subject: [PATCH] fix: preserve 0 values in badge check --- src/components/ProductDescriptions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ProductDescriptions.tsx b/src/components/ProductDescriptions.tsx index a6d47c8..7593951 100644 --- a/src/components/ProductDescriptions.tsx +++ b/src/components/ProductDescriptions.tsx @@ -196,7 +196,7 @@ export function ProductDescriptions({ data, headers, asinColumnIndex, onEdit, ro }; const Badge = ({ content, row }: { content: any, row: ExcelRow }) => { - if (content) return ; + if (content !== undefined && content !== null && content !== '') return ; // EOL Exception: OOC and stock <= 0 const classification = String(row[COLUMNS.CLASSIFICATION] || '').toUpperCase().trim();