Some small portal fixes

This commit is contained in:
Dominic Ferrando
2026-07-03 20:05:20 -04:00
parent 13195dfd0a
commit 2ae4bbaf0c
2 changed files with 15 additions and 8 deletions
@@ -248,7 +248,7 @@
bind:value={calculation.player.metrics.weight}
>
{#each range(400) as weight}
<option value={String(lbToKg(weight))}
<option value={lbToKg(weight)}
>{weight}</option
>
{/each}
+8 -1
View File
@@ -13,8 +13,8 @@
const password = new FormData(form).get("password")?.toString() ?? "";
loading = true;
try {
const { status } = await api.auth.login.post({ password });
loading = false;
if (status === 401) {
error = "Invalid password";
@@ -23,6 +23,13 @@
await goto("/");
}
catch {
error = "Unable to reach the server. Please try again.";
}
finally {
loading = false;
}
}
</script>
<div class="min-h-screen flex items-center justify-center bg-base-200">