aboutsummaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/user/[user]/+page.svelte4
1 files changed, 2 insertions, 2 deletions
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 @@
</div>
{/if}
- {#if preferences}
+ {#if preferences && userData && userData.id === $identity.id}
<p />
<details open>