Update Singup Modal Javascript

This commit is contained in:
James Musselman 2023-11-29 18:38:02 -06:00
parent 53c4fb0f89
commit 93532e65ca

View file

@ -79,7 +79,6 @@ function submitSignup() {
submitBtn.innerHTML = '';
submitBtn.appendChild(spinner);
// Get the values of the signup form fields
const name = document.getElementById("name").value;
const email = document.getElementById("email").value;
@ -112,15 +111,12 @@ function submitSignup() {
console.error(error);
});
// Enable the button and remove the spinner after 5 seconds
setTimeout(function () {
submitBtn.disabled = false;
submitBtn.innerHTML = 'Sign Up';
}, 5000);
sleep(5000).then(() => { submitBtn.disabled = false; });
}