diff --git a/src/features/home/Login.js b/src/features/home/Login.js index a491870..393adff 100644 --- a/src/features/home/Login.js +++ b/src/features/home/Login.js @@ -38,11 +38,8 @@ export class Login extends Component { this.setState({ submitted: true }); const { homeserver, username, password } = this.state; const { login } = this.props.actions; - const { history } = this.props; if (homeserver && username && password) { - login(homeserver, username, password).then( - history.push("/user-admin/list") - ); + login(homeserver, username, password); } } @@ -52,7 +49,7 @@ export class Login extends Component { const { homeserver, username, password, submitted } = this.state; return (
- {mtx && mtx.clientRunning && + {mtx && mtx.clientRunning && mtx.credentials.userId && !loginPending && }