Fixing empty email field in register form breaking signups.

- Fixes #382
pull/722/head
Dessalines 2019-12-28 20:25:36 -05:00
parent 8da44c343d
commit a4b9e635ba
1 changed files with 3 additions and 0 deletions

View File

@ -271,6 +271,9 @@ export class Login extends Component<any, State> {
handleRegisterEmailChange(i: Login, event: any) { handleRegisterEmailChange(i: Login, event: any) {
i.state.registerForm.email = event.target.value; i.state.registerForm.email = event.target.value;
if (i.state.registerForm.email == '') {
i.state.registerForm.email = undefined;
}
i.setState(i.state); i.setState(i.state);
} }