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 544c624 commit f85a8b1Copy full SHA for f85a8b1
src/components/domain/PerAssessmentSummary/index.tsx
@@ -135,9 +135,8 @@ function PerAssessmentSummary(props: Props) {
135
areaResponses ?? [],
136
(areaResponse) => areaResponse?.area ?? -1,
137
(areaResponse) => {
138
- /* NOTE: The calculation of the average rating is done omitting null or
139
- * "0"(not - reviewed") component values
140
- */
+ // NOTE: do we take the average of only rated components or of all the
+ // components?
141
const filteredComponents = areaResponse?.component_responses?.filter(
142
(component) => isDefined(component?.rating_details)
143
&& isDefined(component.rating_details.value)
0 commit comments