Skip to content

Commit

Permalink
bug: wrong lecture type shown for HSS Elective
Browse files Browse the repository at this point in the history
  • Loading branch information
snaoyam committed Aug 7, 2023
1 parent a34536d commit 3a95f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/widgets/timetable_summary.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class TimetableSummary extends StatelessWidget {
TimetableSummary({required this.lectures, this.tempLecture});

int _indexOfType(String type) {
final index = TYPES.indexOf(type);
final index = TYPES.indexWhere((tp) => type.startsWith(tp));
return index == -1 ? 5 : index;
}

Expand Down

0 comments on commit 3a95f45

Please sign in to comment.