debug: Add diagnostics for Buy Box warning issue

This commit is contained in:
Christian Vidal Wolf
2026-02-05 08:43:58 +01:00
parent 09e06bad16
commit 9a042c6478
2 changed files with 9 additions and 4 deletions
+5
View File
@@ -19,6 +19,11 @@ export const BuyBoxWarningBadge: React.FC<BuyBoxWarningBadgeProps> = ({ asin, bu
if (!buyBoxLostMap || !asin) return null;
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 (