From 2b5a80a0324d153b20eac7e6949cc02aea9c1c07 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Tue, 22 Mar 2022 18:10:39 +0100 Subject: implement currentUser store --- web/pw-server/src/lib/components/navbar/UserControls.svelte | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'web/pw-server/src/lib/components') diff --git a/web/pw-server/src/lib/components/navbar/UserControls.svelte b/web/pw-server/src/lib/components/navbar/UserControls.svelte index e9dbab1..3c1d181 100644 --- a/web/pw-server/src/lib/components/navbar/UserControls.svelte +++ b/web/pw-server/src/lib/components/navbar/UserControls.svelte @@ -1,11 +1,11 @@
- {#if user} + {#if $currentUser}
- {user["username"]} + {$currentUser["username"]}
Sign out
{:else} -- cgit v1.2.3