diff options
| author | Kit La Touche <kit@transneptune.net> | 2024-11-21 16:26:10 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-11-22 18:07:41 -0500 |
| commit | 2f6adda366dc372609f214682ca866c104fc278e (patch) | |
| tree | 2a833b64866f87d889507116320b82b41c7fed13 /ui/lib/components | |
| parent | 9a2efe0545e1e695d45f8c7577c3899a6a648e53 (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.svelte | 2 |
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'); } } |
