We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93f5a98 commit b37cf5dCopy full SHA for b37cf5d
1 file changed
schedule.js
@@ -1125,8 +1125,10 @@ async function showLessonInfo(lessonHTML, lesson) {
1125
: "";
1126
let fullTeacherNames = JSON.parse(localStorage.getItem("teachers"));
1127
if (JSON.parse(localStorage.getItem("teachers"))) {
1128
- fullTeacherNames = lesson.teachers.map(
1129
- (teacher) => `${fullTeacherNames[teacher]} (${teacher})`
+ fullTeacherNames = lesson.teachers.map((teacher) =>
+ fullTeacherNames[teacher]
1130
+ ? `${fullTeacherNames[teacher]} (${teacher})`
1131
+ : teacher
1132
);
1133
} else if (userType == "student") {
1134
userInfo();
0 commit comments