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 0dc9f49 commit e200232Copy full SHA for e200232
app/src/components/domain/PerAssessmentSummary/index.tsx
@@ -143,9 +143,8 @@ function PerAssessmentSummary(props: Props) {
143
// NOTE: do we take the average of only rated components or of all the
144
// components?
145
const filteredComponents = areaResponse?.component_responses?.filter(
146
- (component) => isDefined(component?.rating_details)
147
- && isDefined(component.rating_details.value)
148
- && component.rating_details?.value !== 0,
+ (component) => isDefined(component?.rating)
+ && component.rating !== 0,
149
) ?? [];
150
151
if (filteredComponents.length === 0) {
0 commit comments