Skip to content

Commit 170b31a

Browse files
committed
fix
1 parent b85c806 commit 170b31a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hwproj.front/src/components/Courses/CourseExperimental.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export const CourseExperimental: FC<ICourseExperimentalProps> = (props) => {
239239
if (groupedHomeworks.length === 1) return true
240240

241241
const keys = new Set(groupedHomeworks.map(h => h.tasks!.map(t => t.maxRating).join(";")))
242-
return {groupingTag: groupingTag, hasErrors: keys.size === 1}
242+
return {groupingTag: groupingTag, hasErrors: keys.size !== 1}
243243
}
244244

245245
const getDatesAlert = (entity: HomeworkViewModel | HomeworkTaskViewModel, isHomework: boolean) => {

0 commit comments

Comments
 (0)