forked from nutomic/lemmy
Fixing empty email field in register form breaking signups.
- Fixes #382
This commit is contained in:
parent
807dd8d82c
commit
b4b8e9d7f5
1 changed files with 3 additions and 0 deletions
3
ui/src/components/login.tsx
vendored
3
ui/src/components/login.tsx
vendored
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue