diff options
author | LynithDev <61880709+LynithDev@users.noreply.github.com> | 2024-01-20 17:26:36 +0100 |
---|---|---|
committer | LynithDev <61880709+LynithDev@users.noreply.github.com> | 2024-01-20 17:26:36 +0100 |
commit | 55548a94b61ce7d1ca0ca8da69db7566f937cfeb (patch) | |
tree | 54172a78823cf76761ab88e21d6d2c64d5b965c3 /apps/website/src/components/logos | |
parent | 0225e2e17d12a32467bc12f33b2402287c79e23f (diff) | |
download | Nexus-55548a94b61ce7d1ca0ca8da69db7566f937cfeb.tar.gz Nexus-55548a94b61ce7d1ca0ca8da69db7566f937cfeb.tar.bz2 Nexus-55548a94b61ce7d1ca0ca8da69db7566f937cfeb.zip |
FIX THE ICON SYSTEM
Diffstat (limited to 'apps/website/src/components/logos')
-rw-r--r-- | apps/website/src/components/logos/Logo.astro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/website/src/components/logos/Logo.astro b/apps/website/src/components/logos/Logo.astro index 6b085fa..cd780ad 100644 --- a/apps/website/src/components/logos/Logo.astro +++ b/apps/website/src/components/logos/Logo.astro @@ -18,11 +18,11 @@ const { let svg: string | undefined; try { - if (logo === undefined) + if (logo === '' || logo === undefined) return; const dir = new URL(join('..', '..', '..', 'public', 'media'), import.meta.url).pathname; - svg = (await readFile(`${dir}/${logo.replaceAll('.', '/')}.svg`, { encoding: 'utf8' })); + svg = (await readFile(`${dir}/${logo.replaceAll('.', '/')}.svg`)).toString(); if (svg === undefined) return; |