mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
Add null check
This commit is contained in:
parent
238e48e4af
commit
5330e47b3f
1 changed files with 2 additions and 1 deletions
|
@ -700,7 +700,8 @@ module.exports = React.createClass({
|
|||
// Show screens (like 'register') that need to be shown without onLoggedIn
|
||||
// being called. 'register' needs to be routed here when the email confirmation
|
||||
// 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();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue