Skip to content

Commit

Permalink
fix: faculty image filter
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutV committed Apr 9, 2024
1 parent a9933a9 commit d87a653
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/components/courses/CourseGeneralCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}) ?? '';
}
</script>

Expand Down

0 comments on commit d87a653

Please sign in to comment.