Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutV committed Apr 9, 2024
1 parent d87a653 commit 9c83c4e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/src/components/courses/CourseGeneralCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ const images = Object.keys(
* @param faculty
*/
function getFacultyIcon(faculty: Faculty): string {
return images.find((image) => {
image = image.replace('/src/assets/img/faculties/', '');
return image === faculty.id + '.png';
}) ?? '';
return (
images.find((image) => {
image = image.replace('/src/assets/img/faculties/', '');
return image === faculty.id + '.png';
}) ?? ''
);
}
</script>

Expand Down

0 comments on commit 9c83c4e

Please sign in to comment.