Skip to content

Commit

Permalink
Fix calcul du score total sur le tableau de bord
Browse files Browse the repository at this point in the history
  • Loading branch information
mariheck committed Oct 18, 2023
1 parent eabd1e9 commit b176b66
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ export const getAggregatedScore = (scoreData: readonly ProgressionRow[]) => {
programmes: aggregatedScore[1].value,
pas_fait: aggregatedScore[2].value,
non_renseigne: aggregatedScore[3].value,
max_personnalise: aggregatedScore.reduce(
(sum, currVal) => sum + currVal.value,
max_personnalise: scoreData.reduce(
(res, currVal) => res + currVal.points_max_personnalises,
0
),
};
Expand Down

0 comments on commit b176b66

Please sign in to comment.