mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 15:45:24 +02:00
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:
co-authored by
Qwen-Coder
parent
19f1137a30
commit
3c199715b9
@@ -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 (
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user