Skip to content

Commit

Permalink
fix get department all unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Lu-none committed Feb 21, 2024
1 parent c607ea1 commit 15a5b7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/pages/coursedetail/screen/course_info_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class _CourseInfoPageState extends State<CourseInfoPage> with AutomaticKeepAlive

String department = departmentMap[studentId.substring(3, 5)];

if (department.isEmpty) {
if (department != null) {
return department;
}

Expand Down

0 comments on commit 15a5b7a

Please sign in to comment.