From 47b4d6e6bc46c9fa013b1a8450357b0f37210ddf Mon Sep 17 00:00:00 2001 From: ernstmul Date: Mon, 19 May 2025 07:14:19 +0200 Subject: [PATCH] Update tag --- src/lib/helpers/waitlist.ts | 7 +++---- src/lib/layout/navigation.svelte | 15 ++++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/lib/helpers/waitlist.ts b/src/lib/helpers/waitlist.ts index 950844366..d89d12646 100644 --- a/src/lib/helpers/waitlist.ts +++ b/src/lib/helpers/waitlist.ts @@ -2,10 +2,8 @@ import { get } from 'svelte/store'; import { user } from '$lib/stores/user'; import { sdk } from '$lib/stores/sdk'; -const userPreferences = () => get(user)?.prefs; - export const joinWaitlistSites = () => { - const currentPrefs = userPreferences(); + const currentPrefs = () => get(user)?.prefs; const newPrefs = { ...currentPrefs, @@ -16,7 +14,8 @@ export const joinWaitlistSites = () => { }; export const isOnWaitlistSites = (): boolean => { - const currentPrefs = userPreferences(); + const currentPrefs = () => get(user)?.prefs; + console.log('load from prefs', 'joinWaitlistSites' in currentPrefs); return 'joinWaitlistSites' in currentPrefs; }; diff --git a/src/lib/layout/navigation.svelte b/src/lib/layout/navigation.svelte index 5095e355e..31284156b 100644 --- a/src/lib/layout/navigation.svelte +++ b/src/lib/layout/navigation.svelte @@ -179,7 +179,9 @@ }}>