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 <qwen-coder@alibabacloud.com>
This commit is contained in:
Christian Vidal Wolf
2026-03-16 15:09:07 +01:00
co-authored by Qwen-Coder
parent 19f1137a30
commit 3c199715b9
2 changed files with 1 additions and 5 deletions
-4
View File
@@ -20,10 +20,6 @@ export const BuyBoxWarningBadge: React.FC<BuyBoxWarningBadgeProps> = memo(({ asi
const data = buyBoxLostMap.get(asin.toUpperCase()); 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; if (!data || data.countries.length === 0) return null;
return ( return (
+1 -1
View File
@@ -170,7 +170,7 @@ const MoversTable: React.FC<{
{data.length === 0 && ( {data.length === 0 && (
<tr> <tr>
<td colSpan={7} className="px-6 py-12 text-center text-slate-500 italic"> <td colSpan={10} className="px-6 py-12 text-center text-slate-500 italic">
No records found matching this criteria. No records found matching this criteria.
</td> </td>
</tr> </tr>