Add null check to start_login
This commit is contained in:
parent
5e93dde0dd
commit
47958180a6
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue