👏🏿 👏🏿 👏🏿

This commit is contained in:
55nknown
2022-10-03 11:24:25 +02:00
parent ea33d00f54
commit 4af3e51300
4 changed files with 5 additions and 5 deletions

View File

@@ -153,8 +153,8 @@ class LiveCardProvider extends ChangeNotifier {
currentLesson = null; currentLesson = null;
} }
final _next = today.firstWhere((l) => l.start.isAfter(_now()), orElse: () => Lesson.fromJson({})); final _next = today.firstWhere((l) => l.start.isAfter(now), orElse: () => Lesson.fromJson({}));
nextLessons = today.where((l) => l.start.isAfter(_now())).toList(); nextLessons = today.where((l) => l.start.isAfter(now)).toList();
if (_next.start.year != 0) { if (_next.start.year != 0) {
nextLesson = _next; nextLesson = _next;