diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 7229c71437..4f3c8fe7e5 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -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(), });