diff --git a/front_end/src/Components/AggregateValue/index.jsx b/front_end/src/Components/AggregateValue/index.jsx index 8c7ee67a..f2d3a7d9 100644 --- a/front_end/src/Components/AggregateValue/index.jsx +++ b/front_end/src/Components/AggregateValue/index.jsx @@ -9,7 +9,7 @@ const AggregateValue = ({ rowIndex, actualsOnly, extraClasses }) => { let total = 0; for (let i = 1; i < 13; i++) { - if (!cells[i] || (actualsOnly && cells[i].isActual)) { + if (!cells[i] || (actualsOnly && !cells[i].isActual)) { continue; } diff --git a/front_end/src/Components/TotalAggregate/index.jsx b/front_end/src/Components/TotalAggregate/index.jsx index bacb69a2..b60b43df 100644 --- a/front_end/src/Components/TotalAggregate/index.jsx +++ b/front_end/src/Components/TotalAggregate/index.jsx @@ -11,7 +11,7 @@ const TotalAggregate = ({ actualsOnly, id, extraClasses }) => { // eslint-disable-next-line for (const cell of cells) { for (let i = 1; i < 13; i++) { - if (!cell[i] || (actualsOnly && cell[i].isActual)) { + if (!cell[i] || (actualsOnly && !cell[i].isActual)) { continue; }