From b4b8e9d7f561b23942ee5b825873929eed30edc3 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 28 Dec 2019 20:25:36 -0500 Subject: [PATCH] Fixing empty email field in register form breaking signups. - Fixes #382 --- ui/src/components/login.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/src/components/login.tsx b/ui/src/components/login.tsx index 9a3cf3e3..c8de6c70 100644 --- a/ui/src/components/login.tsx +++ b/ui/src/components/login.tsx @@ -271,6 +271,9 @@ export class Login extends Component { handleRegisterEmailChange(i: Login, event: any) { i.state.registerForm.email = event.target.value; + if (i.state.registerForm.email == '') { + i.state.registerForm.email = undefined; + } i.setState(i.state); }