Skip to content

Commit

Permalink
🚸 Revert course eleventh judgment.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Feb 17, 2020
1 parent c7ed37e commit 63ca40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pages/home/course_schedule_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ class CourseWidget extends StatelessWidget {
);
}
if (course == null && courseList.isNotEmpty) course = courseList[0];
if (hasEleven) isEleven = courseList.firstWhere((c) => c.isEleven, orElse: () => null) != null;
if (hasEleven) isEleven = course?.isEleven ?? false;
return Expanded(
flex: hasEleven ? 3 : 2,
child: Column(
Expand Down

0 comments on commit 63ca40d

Please sign in to comment.