diff --git a/services/experimentAnalysis.ts b/services/experimentAnalysis.ts index cf51c5a..1f5d278 100644 --- a/services/experimentAnalysis.ts +++ b/services/experimentAnalysis.ts @@ -58,7 +58,7 @@ function aggregateWeeklyMetrics( const weeklyMap = new Map(); for (const r of salesData) { - const asin = (r.asin || '').toUpperCase(); + const asin = (r.asin || '').trim().toUpperCase(); if (!asinSet.has(asin)) continue; const mkt = (r.marketplace || (r as any).customer || '').toLowerCase();