Skip to content

Commit e200232

Browse files
committed
Fix area rating chart in per assessment summary
1 parent 0dc9f49 commit e200232

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

app/src/components/domain/PerAssessmentSummary/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,8 @@ function PerAssessmentSummary(props: Props) {
143143
// NOTE: do we take the average of only rated components or of all the
144144
// components?
145145
const filteredComponents = areaResponse?.component_responses?.filter(
146-
(component) => isDefined(component?.rating_details)
147-
&& isDefined(component.rating_details.value)
148-
&& component.rating_details?.value !== 0,
146+
(component) => isDefined(component?.rating)
147+
&& component.rating !== 0,
149148
) ?? [];
150149

151150
if (filteredComponents.length === 0) {

0 commit comments

Comments
 (0)