diff --git a/frontend/src/components/courses/CourseGeneralCard.vue b/frontend/src/components/courses/CourseGeneralCard.vue index a29ccfce..59ca2f2d 100644 --- a/frontend/src/components/courses/CourseGeneralCard.vue +++ b/frontend/src/components/courses/CourseGeneralCard.vue @@ -25,7 +25,10 @@ const images = Object.keys( * @param faculty */ function getFacultyIcon(faculty: Faculty): string { - return images.find((image) => image.includes(faculty.id)) ?? ''; + return images.find((image) => { + image = image.replace('/src/assets/img/faculties/', ''); + return image === faculty.id + '.png'; + }) ?? ''; }