From: Dessalines Date: Sun, 29 Dec 2019 01:25:36 +0000 (-0500) Subject: Fixing empty email field in register form breaking signups. X-Git-Url: http://these/git/%7BsupportLemmyUrl%7D?a=commitdiff_plain;h=a4b9e635ba30b3f7dfaa578b1ec00fa8ed1757e2;p=lemmy.git Fixing empty email field in register form breaking signups. - Fixes #382 --- 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); }