diff --git a/apps/forum/src/utils/get-school-icon-path.ts b/apps/forum/src/utils/get-school-icon-path.ts index 98f5d184a..ff6c3a33c 100644 --- a/apps/forum/src/utils/get-school-icon-path.ts +++ b/apps/forum/src/utils/get-school-icon-path.ts @@ -5,9 +5,11 @@ import schoolIconJA from "@app/constants/school-name-icon-map-ja"; const getSchoolIconPath = (school: string, lng: string): string => { const url = new URL( lng === Lang.JA ? schoolIconJA[school] : schoolIconEN[school], - import.meta.url + import.meta.url || "https://wasedatime.com/syllabus" ); return url.href; }; export default getSchoolIconPath; + +/// prevent empty