From 3c199715b9e96ccadc2e6890f5ea3de17dfc95d6 Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Mon, 16 Mar 2026 15:09:07 +0100 Subject: [PATCH] fix: remove debug code from BuyBoxWarningBadge causing runtime error - Removed debug console.log that was accessing data before null check - Fixed colSpan in TopMovers empty state message (7 -> 10 columns) Co-authored-by: Qwen-Coder --- components/BuyBoxWarningBadge.tsx | 4 ---- components/TopMovers.tsx | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/components/BuyBoxWarningBadge.tsx b/components/BuyBoxWarningBadge.tsx index 2b84b5e..b2945c5 100644 --- a/components/BuyBoxWarningBadge.tsx +++ b/components/BuyBoxWarningBadge.tsx @@ -20,10 +20,6 @@ export const BuyBoxWarningBadge: React.FC = memo(({ asi const data = buyBoxLostMap.get(asin.toUpperCase()); - if (asin.toUpperCase() === 'B0D3874WSD') { - console.log(`[BuyBoxBadge Debug] ASIN: ${asin}, Found in map: ${!!data}, Countries: ${data?.countries.join(', ') || 'none'}`); - } - if (!data || data.countries.length === 0) return null; return ( diff --git a/components/TopMovers.tsx b/components/TopMovers.tsx index 7753487..f004bba 100644 --- a/components/TopMovers.tsx +++ b/components/TopMovers.tsx @@ -170,7 +170,7 @@ const MoversTable: React.FC<{ {data.length === 0 && ( - + No records found matching this criteria.