diff --git a/src/views/hooks/useFlattenedCourseSchedule.ts b/src/views/hooks/useFlattenedCourseSchedule.ts index 7e7b48c4..81150d29 100644 --- a/src/views/hooks/useFlattenedCourseSchedule.ts +++ b/src/views/hooks/useFlattenedCourseSchedule.ts @@ -98,7 +98,7 @@ function extractCourseInfo(course: Course) { if (course.instructors.length >= 0) { courseDeptAndInstr += ` - `; courseDeptAndInstr += course.instructors - .map(instructor => `${instructor.toString({ format: 'last', case: 'capitalize' })}`) + .map(instructor => instructor.toString({ format: 'last', case: 'capitalize' })) .join(', '); }