From 2e09bee95f70f4ab9781970e0d64ce47e68f83ef Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 14 Oct 2025 12:43:56 -0700 Subject: don't fetch locations on homepage --- src/components/About.svelte | 57 +++++++++++++++++---------------------------- 1 file changed, 22 insertions(+), 35 deletions(-) (limited to 'src') diff --git a/src/components/About.svelte b/src/components/About.svelte index e3608e70..331a5188 100644 --- a/src/components/About.svelte +++ b/src/components/About.svelte @@ -22,15 +22,6 @@ }, { name: "cole", socials: [] }, ]; - - let locations = $state(); - onMount(async () => { - try { - ({ locations } = await fetch("/locations").then((r) => r.json())); - } catch (e) { - console.log(e); - } - });
@@ -59,9 +50,7 @@
{#each member.socials as { alt, src, url }} - {/each} @@ -77,29 +66,27 @@
-{#if locations?.length} -
-

- {$t("about.locations.header")} -

-

- {@html $t("about.locations.description")} -

+
+

+ {$t("about.locations.header")} +

+

+ {@html $t("about.locations.description")} +

- -{/if} +
-- cgit v1.2.3