From 0f538be3e54866d055ca0b687fb0571e566a52ab Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sun, 25 Jul 2021 18:53:14 +1000 Subject: [PATCH] Fixed #20 --- client/components/pages/signup.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/components/pages/signup.jsx b/client/components/pages/signup.jsx index 46b9203..dfa821b 100644 --- a/client/components/pages/signup.jsx +++ b/client/components/pages/signup.jsx @@ -22,16 +22,19 @@ const SignUp = props => { const passwordRef = useRef(); const retypeRef = useRef(); const contactRef = useRef(); + const signupRef = useRef(); return (

Signup

{ //on submit + signupRef.current.disabled = true; evt.preventDefault(); const [result, redirect] = await handleSubmit(emailRef.current.value, usernameRef.current.value, passwordRef.current.value, retypeRef.current.value, contactRef.current.checked); if (result) { alert(result); + signupRef.current.disabled = false; } //redirect @@ -65,7 +68,7 @@ const SignUp = props => {
- + );