summaryrefslogtreecommitdiff
path: root/hi-ui/src/lib/LogOut.svelte
diff options
context:
space:
mode:
authorKit La Touche <kit@transneptune.net>2024-10-03 23:30:10 -0400
committerKit La Touche <kit@transneptune.net>2024-10-03 23:30:10 -0400
commit30c13478d61065a512f5bc8824fecbf2ee6afc81 (patch)
tree5b9f0fe65458f6d19f7f0b3fed9c8d3e4676a175 /hi-ui/src/lib/LogOut.svelte
parent01d995c731c296292cd3f1f9a4702eb96a0bf628 (diff)
Handle basics of interface scrolling
Diffstat (limited to 'hi-ui/src/lib/LogOut.svelte')
-rw-r--r--hi-ui/src/lib/LogOut.svelte3
1 files changed, 1 insertions, 2 deletions
diff --git a/hi-ui/src/lib/LogOut.svelte b/hi-ui/src/lib/LogOut.svelte
index 64d26c9..738be24 100644
--- a/hi-ui/src/lib/LogOut.svelte
+++ b/hi-ui/src/lib/LogOut.svelte
@@ -9,7 +9,6 @@
});
async function handleLogout(event) {
- event.preventDefault();
const response = await logOut();
if (200 <= response.status && response.status < 300) {
currentUser.update(() => null);
@@ -17,7 +16,7 @@
}
</script>
-<form on:submit={handleLogout}>
+<form on:submit|preventDefault={handleLogout}>
@{user.username}
<button
class="border-slate-500 border-solid border-2 font-bold p-1 rounded"