From bc09954b12ecf4e60e25da0a67ce91397f8fb560 Mon Sep 17 00:00:00 2001 From: Loudbook Date: Mon, 7 Oct 2024 23:59:29 -0400 Subject: [PATCH] Check disabled --- src/routes/+page.svelte | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index e55d93e..b844222 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -41,11 +41,13 @@ { - if (event.key === "Enter") { - requestReport(); - } + (event) => { + if (event.key === "Enter") { + if (!button.disabled) { + requestReport(); + } } + } } bind:this={usernameInput}>