From ab2682fd3cf97d1af81e18433964ade4cfee7961 Mon Sep 17 00:00:00 2001 From: Musselman Date: Wed, 29 Nov 2023 18:59:24 -0600 Subject: [PATCH] Refactor form submission handling for sign up - Disable submit button and display spinner during form submission to prevent multiple clicks - Obtain form field values and send signup request as form data for processing on the server --- static/build/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/build/index.js b/static/build/index.js index 5f70e57..6467823 100644 --- a/static/build/index.js +++ b/static/build/index.js @@ -104,8 +104,8 @@ function submitSignup() { throw new Error("Signup request failed"); } }) - .then(data => { - console.log(data); + .then(() => { + window.location.href = "/welcome"; }) .catch(error => { console.error(error);