mirror of https://github.com/vector-im/riot-web
Merge pull request #751 from matrix-org/luke/fix-start-login
Add null check to start_loginpull/21833/head
commit
1cb653ac16
|
@ -351,7 +351,9 @@ module.exports = React.createClass({
|
|||
this.notifyNewScreen('register');
|
||||
break;
|
||||
case 'start_login':
|
||||
if (MatrixClientPeg.get().isGuest()) {
|
||||
if (MatrixClientPeg.get() &&
|
||||
MatrixClientPeg.get().isGuest()
|
||||
) {
|
||||
this.setState({
|
||||
guestCreds: MatrixClientPeg.getCredentials(),
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue