mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-01 11:03:18 +03:00
Merge pull request #751 from matrix-org/luke/fix-start-login
Add null check to start_login
This commit is contained in:
commit
1cb653ac16
1 changed files with 3 additions and 1 deletions
|
@ -351,7 +351,9 @@ module.exports = React.createClass({
|
||||||
this.notifyNewScreen('register');
|
this.notifyNewScreen('register');
|
||||||
break;
|
break;
|
||||||
case 'start_login':
|
case 'start_login':
|
||||||
if (MatrixClientPeg.get().isGuest()) {
|
if (MatrixClientPeg.get() &&
|
||||||
|
MatrixClientPeg.get().isGuest()
|
||||||
|
) {
|
||||||
this.setState({
|
this.setState({
|
||||||
guestCreds: MatrixClientPeg.getCredentials(),
|
guestCreds: MatrixClientPeg.getCredentials(),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue