We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bdf6e9 commit 1411631Copy full SHA for 1411631
1 file changed
src/components/ui/CoursePreviewCard/CoursePreviewCard.tsx
@@ -78,8 +78,8 @@ const CoursePreviewCard = React.forwardRef<
78
79
const displayAmountUnits = course?.unitsCount ?? course?.units?.length ?? 0;
80
81
- const instructorName = course?.professor?.user
82
- ? `${course.professor.user.name} ${course.professor.user.surname}`
+ const instructorName = course?.professor
+ ? `${course.professor.name} ${course.professor.surname}`
83
: 'Instructor no disponible';
84
85
return (
0 commit comments