We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3939fc8 commit f92a775Copy full SHA for f92a775
src/modules/common/response/visualization/DimensionsOfGlobalIssue.tsx
@@ -65,7 +65,11 @@ const DimensionsOfGlobalIssue = ({
65
const meanRatings = useMemo(() => {
66
const accumulatedRatings = ratings
67
.map(({ data }) => data.ratings)
68
- .reduce(compputeMeanRatings);
+ .reduce(compputeMeanRatings, {
69
+ coordination: 0,
70
+ global: 0,
71
+ socioTechnic: 0,
72
+ });
73
// TODO: Divide only by actual number of ratings i.e. don't count undefined.
74
const divider = RATING_SCALE * ratings.length;
75
return {
0 commit comments