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}>