summaryrefslogtreecommitdiff
path: root/ui/lib/components
diff options
context:
space:
mode:
authorKit La Touche <kit@transneptune.net>2024-11-21 16:26:10 -0500
committerKit La Touche <kit@transneptune.net>2024-11-22 12:12:22 -0500
commitc2f711c56a3bc736cf507a920dee0915b69af77e (patch)
tree9d205b2898d1c3f94c5c17ce3debca481f5d3e02 /ui/lib/components
parentcbba25f939a12026816c1b8202d821f57606f248 (diff)
Use store.set where appropriate
If you're setting it to a static value, use set.
Diffstat (limited to 'ui/lib/components')
-rw-r--r--ui/lib/components/LogOut.svelte2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/lib/components/LogOut.svelte b/ui/lib/components/LogOut.svelte
index 25dd5e9..52aa039 100644
--- a/ui/lib/components/LogOut.svelte
+++ b/ui/lib/components/LogOut.svelte
@@ -7,7 +7,7 @@
event.preventDefault();
const response = await logOut();
if (200 <= response.status && response.status < 300) {
- currentUser.update(() => null);
+ currentUser.set(null);
goto('/login');
}
}