Skip to content

Commit 1411631

Browse files
carlex74carlflex
andauthored
Chore/modified card (#201)
* chore: fix upload file * modified course object --------- Co-authored-by: carlex <ricardogugliermino@gmail.com>
1 parent 4bdf6e9 commit 1411631

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/ui/CoursePreviewCard/CoursePreviewCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ const CoursePreviewCard = React.forwardRef<
7878

7979
const displayAmountUnits = course?.unitsCount ?? course?.units?.length ?? 0;
8080

81-
const instructorName = course?.professor?.user
82-
? `${course.professor.user.name} ${course.professor.user.surname}`
81+
const instructorName = course?.professor
82+
? `${course.professor.name} ${course.professor.surname}`
8383
: 'Instructor no disponible';
8484

8585
return (

0 commit comments

Comments
 (0)