You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-06-26 04:01:04 +03:00
Add null check
This commit is contained in:
@ -700,7 +700,8 @@ module.exports = React.createClass({
|
|||||||
// Show screens (like 'register') that need to be shown without onLoggedIn
|
// Show screens (like 'register') that need to be shown without onLoggedIn
|
||||||
// being called. 'register' needs to be routed here when the email confirmation
|
// being called. 'register' needs to be routed here when the email confirmation
|
||||||
// link is clicked on.
|
// link is clicked on.
|
||||||
if (['register'].indexOf(this.state.screenAfterLogin.screen) !== -1) {
|
if (this.state.screenAfterLogin &&
|
||||||
|
['register'].indexOf(this.state.screenAfterLogin.screen) !== -1) {
|
||||||
this._showScreenAfterLogin();
|
this._showScreenAfterLogin();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user