feat: next safe generalization

This commit is contained in:
TrèsAbhi committed 2024-07-08 19:36:28 -05:00
1 parent eb87463f08
commit dae902fe03
19 files changed
+163 -155

No files matched your search

@@ -18,7 +18,7 @@ export const Total = memo<TotalProps>(
const sum = useCallback(
(slice: (tank: AverageDefinitionsAllStats) => number) => {
return tanks.reduce(
(acc, tank) => acc + tank.samples * slice(tank.mu),
(acc, tank) => acc + tank.samples.total * slice(tank.mu),
0,
);
},