fix(experiment): patch ASIN matching bug where trailing whitespaces from excel files dropped matching records from analysis leading to zeroed metrics

This commit is contained in:
Christian Vidal Wolf
2026-02-25 16:16:47 +01:00
parent 79641b793a
commit de1af7e0db
+1 -1
View File
@@ -58,7 +58,7 @@ function aggregateWeeklyMetrics(
const weeklyMap = new Map<string, WeeklyMetrics>();
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();