From 657bc8d71959032cde5eaae6c71c8bd93b3c92e3 Mon Sep 17 00:00:00 2001 From: Khiem Nguyen <57775422+KimotoNari@users.noreply.github.com> Date: Tue, 16 Jul 2024 14:06:50 -0500 Subject: [PATCH] SKEDGE-13 (#35) * Updated Inject Professor Name changed empty professor names to "No Instructor" * Nit Co-authored-by: Alexis Kaufman --------- Co-authored-by: Jake Co-authored-by: Alexis Kaufman Co-authored-by: Tyler Hill --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index b09051a..c988e95 100644 --- a/src/content.ts +++ b/src/content.ts @@ -80,7 +80,7 @@ export async function scrapeCourseData() { }); // append professor name to the table const newTd = document.createElement('td'); - newTd.innerText = professor; + newTd.innerText = professor ?? 'No Instructor'; // this is in case we have multiple instructions per section const sectionProfessors = professor.split(','); sectionProfessors.forEach((sectionProfessor) => {