diff --git a/src/routes/register/index.svelte b/src/routes/register/index.svelte index 35501fce2..0b2183444 100644 --- a/src/routes/register/index.svelte +++ b/src/routes/register/index.svelte @@ -19,6 +19,9 @@ emailEl.focus(); }); async function handleSubmit() { + // Prevent double submission + if (loading) return; + if (password !== passwordCheck) { return errorNotification('Passwords do not match.'); } @@ -88,8 +91,13 @@ />
- {loading ? 'Registering...' : 'Register'}