From 67cde2de392b4afd942cb14279cb5fbcbadf7a0a Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 24 Feb 2024 23:19:38 -0800 Subject: fix(user): show hololive when not authenticated --- src/routes/user/[user]/+page.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/routes/user') diff --git a/src/routes/user/[user]/+page.svelte b/src/routes/user/[user]/+page.svelte index b971abd9..399aafd6 100644 --- a/src/routes/user/[user]/+page.svelte +++ b/src/routes/user/[user]/+page.svelte @@ -52,7 +52,7 @@ ); }); - $: if (userData && userData.id === $identity.id) { + $: if (userData) { fetch(root(`/api/preferences?id=${userData.id}`)) .then((rawPreferences) => rawPreferences.json()) .then((JSONpreferences) => (preferences = JSONpreferences)); @@ -172,7 +172,7 @@ {/if} - {#if preferences} + {#if preferences && userData && userData.id === $identity.id}

-- cgit v1.2.3