From 6c91adefcd28e8328ba2eb0df4bf81556b8ea9e3 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 6 Aug 2026 19:17:41 +0200 Subject: [PATCH] volWin: plain 90d window filter (upstream-adapted) --- frontend/src/views/Stats.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/Stats.jsx b/frontend/src/views/Stats.jsx index 41be0e7..3186f9c 100644 --- a/frontend/src/views/Stats.jsx +++ b/frontend/src/views/Stats.jsx @@ -120,7 +120,7 @@ function MuscleBalance({ S }) { const rated = inWin.some(w => w.entries.some(e => e.sets.some(s => s.done && isHardSet(s)))) const on = hard && rated const load = loadOfWorkouts(inWin, on ? isHardSet : null) - const volWin = S.workouts.filter(w => historyUnitCompatible(w, S.unit) && (w.start || new Date(w.d).getTime()) > now - 90 * 86400000) + const volWin = S.workouts.filter(w => (w.start || new Date(w.d).getTime()) > now - 90 * 86400000) const vol90 = loadOfWorkouts(volWin, null) const { worked, missed } = rankOf(load) const top = worked.slice(0, 4)