You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Add null check to start_login
This commit is contained in:
@ -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(),
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user