diff --git a/filcnaplo_mobile_ui/lib/pages/grades/grades_page.dart b/filcnaplo_mobile_ui/lib/pages/grades/grades_page.dart index b5decc7..7d1d845 100755 --- a/filcnaplo_mobile_ui/lib/pages/grades/grades_page.dart +++ b/filcnaplo_mobile_ui/lib/pages/grades/grades_page.dart @@ -128,7 +128,9 @@ class GradesPageState extends State { i++; int homeworkCount = homeworkProvider.homework - .where((e) => e.subject.id == subject.id) + .where((e) => + e.subject.id == subject.id && + e.deadline.isBefore(DateTime.now())) .length; bool hasHomework = homeworkCount > 0;