summaryrefslogtreecommitdiff
path: root/hi-ui/src/lib/LogOut.svelte
diff options
context:
space:
mode:
authorKit La Touche <kit@transneptune.net>2024-10-08 22:58:17 -0400
committerKit La Touche <kit@transneptune.net>2024-10-08 22:58:17 -0400
commitdd62b823e01934a0f841256fdb17b551091896bf (patch)
treeb8494b134cc32d62b431eb97be19e23fd90635e0 /hi-ui/src/lib/LogOut.svelte
parent7f0ce0c639e936db0f5f3fabcbe2d279261d0c0b (diff)
All kinds of styling
Diffstat (limited to 'hi-ui/src/lib/LogOut.svelte')
-rw-r--r--hi-ui/src/lib/LogOut.svelte8
1 files changed, 1 insertions, 7 deletions
diff --git a/hi-ui/src/lib/LogOut.svelte b/hi-ui/src/lib/LogOut.svelte
index 738be24..0f0bb13 100644
--- a/hi-ui/src/lib/LogOut.svelte
+++ b/hi-ui/src/lib/LogOut.svelte
@@ -2,12 +2,6 @@
import { logOut} from '../apiServer';
import { currentUser } from '../store';
- let user;
-
- currentUser.subscribe((value) => {
- user = value;
- });
-
async function handleLogout(event) {
const response = await logOut();
if (200 <= response.status && response.status < 300) {
@@ -17,7 +11,7 @@
</script>
<form on:submit|preventDefault={handleLogout}>
- @{user.username}
+ @{$currentUser.username}
<button
class="border-slate-500 border-solid border-2 font-bold p-1 rounded"
type="submit"