diff options
author | Dessalines <tyhou13@gmx.com> | 2019-12-28 20:25:36 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-12-28 20:25:36 -0500 |
commit | a4b9e635ba30b3f7dfaa578b1ec00fa8ed1757e2 (patch) | |
tree | aa96752965ea0dccd1b59580e068382d85089a21 /ui/src/components/login.tsx | |
parent | 8da44c343d9bf7ff62cac3ec6da08a48773f828f (diff) |
Fixing empty email field in register form breaking signups.
- Fixes #382
Diffstat (limited to 'ui/src/components/login.tsx')
-rw-r--r-- | ui/src/components/login.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
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<any, State> { 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); } |