diff --git a/lib/core/managers/course_repository.dart b/lib/core/managers/course_repository.dart index b7f393496..6e7cb68ab 100644 --- a/lib/core/managers/course_repository.dart +++ b/lib/core/managers/course_repository.dart @@ -512,9 +512,7 @@ class CourseRepository { Course course, Map> reviews) { // Todo: changer pour firstWhereOrNull après update de Collection final review = reviews[course.session]?.where((element) => - element.acronym == course.acronym && element.group == course.group); - return review?.isNotEmpty ?? false - ? review?.first - : null; + element.acronym == course.acronym && element.group == course.group); + return review?.isNotEmpty ?? false ? review?.first : null; } }