From a4b9e635ba30b3f7dfaa578b1ec00fa8ed1757e2 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 9a3cf3e33..c8de6c70e 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); }