summaryrefslogtreecommitdiffstats
path: root/ui/src/components/login.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/components/login.tsx')
-rw-r--r--ui/src/components/login.tsx3
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);
}