Fixing empty email field in register form breaking signups.

- Fixes #382
This commit is contained in:
Dessalines 2019-12-28 20:25:36 -05:00
parent 807dd8d82c
commit b4b8e9d7f5

View file

@ -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);
}