Skip to content

Commit f85a8b1

Browse files
committed
Remove lint error
1 parent 544c624 commit f85a8b1

File tree

1 file changed

+2
-3
lines changed
  • src/components/domain/PerAssessmentSummary

1 file changed

+2
-3
lines changed

src/components/domain/PerAssessmentSummary/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,8 @@ function PerAssessmentSummary(props: Props) {
135135
areaResponses ?? [],
136136
(areaResponse) => areaResponse?.area ?? -1,
137137
(areaResponse) => {
138-
/* NOTE: The calculation of the average rating is done omitting null or
139-
* "0"(not - reviewed") component values
140-
*/
138+
// NOTE: do we take the average of only rated components or of all the
139+
// components?
141140
const filteredComponents = areaResponse?.component_responses?.filter(
142141
(component) => isDefined(component?.rating_details)
143142
&& isDefined(component.rating_details.value)

0 commit comments

Comments
 (0)