App: usuniecie objetosci cwiczenia z wierszy historii - mylila jako przerzucony ciezar; zostaje w naglowku sesji i w postepach/statystykach (testy)

This commit is contained in:
tisachi
2026-11-05 22:28:39 +01:00
parent e94cf72e15
commit 43d28f083d
3 changed files with 3 additions and 13 deletions

View File

@@ -158,13 +158,6 @@ export default function HistoryTable({
const exExtra = ex.sets.filter(
(set) => set.planned == null && set.reps != null,
).length;
const exVolume = ex.sets.reduce(
(sum, set) =>
set.reps != null
? sum + (set.planned?.loadKg ?? s.bodyKg ?? 0) * set.reps
: sum,
0,
);
// komentarze serii: wskaznik, by trener nie musial otwierac dialogu
const exNotes = ex.sets.filter((set) => set.note).length;
return (
@@ -200,9 +193,6 @@ export default function HistoryTable({
{t('history.bonusValue', { n: exExtra })}
</span>
)}
{exVolume > 0 && (
<span className="tabular-nums">{fmtVolume(exVolume)}</span>
)}
{exNotes > 0 && (
<Badge
color="green"