From de1af7e0dbea1d148abc4f5305e0c6d5f88594d5 Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Wed, 25 Feb 2026 16:16:47 +0100 Subject: [PATCH] fix(experiment): patch ASIN matching bug where trailing whitespaces from excel files dropped matching records from analysis leading to zeroed metrics --- services/experimentAnalysis.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();