From b3ae91d8f3cebb89e5e5cea7f1200d28326afb4d Mon Sep 17 00:00:00 2001 From: adityamkk <73001560+adityamkk@users.noreply.github.com> Date: Tue, 29 Oct 2024 12:12:51 -0500 Subject: [PATCH] fix(ui): placeholder text for no instructor course #400 (#402) * fix(ui): placeholder text for no instructor course #400 * Update src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx Co-authored-by: Samuel Gunter --------- Co-authored-by: Samuel Gunter --- .../CourseCatalogInjectedPopup/HeadingAndActions.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx b/src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx index 6b69e1c9..c979e96f 100644 --- a/src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx +++ b/src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx @@ -130,8 +130,8 @@ export default function HeadingAndActions({ course, activeSchedule, onClose }: H
- {instructors.length > 0 && ( - + {instructors.length > 0 ? ( + with{' '} {instructors .map(instructor => ( @@ -146,6 +146,10 @@ export default function HeadingAndActions({ course, activeSchedule, onClose }: H )) .flatMap((el, i) => (i === 0 ? [el] : [', ', el]))} + ) : ( + + (No instructor has been provided) + )}
{flags.map((flag: string) => (