fix: cap prior year ad data to current week in Dashboard

Pass ytdFilteredAdsData instead of filteredAdsData so previous years
are capped at the same max week as the current year, enabling
like-for-like YoY advertising comparisons.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Christian Vidal Wolf
2026-05-20 08:08:11 +02:00
co-authored by Claude Sonnet 4.6
parent 43a532a6f0
commit 6426b641c1
+1 -1
View File
@@ -854,7 +854,7 @@ const App: React.FC = () => {
<Dashboard
data={ytdAggregatedData}
filterState={filters}
adsData={filteredAdsData}
adsData={ytdFilteredAdsData}
stockMap={stockMap}
vendorStockMap={vendorStockMap}
buyBoxLostMap={buyBoxLostMap}