1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-18 09:22:18 +03:00

Try to fix tests

This commit is contained in:
Luke Barnard
2017-04-28 13:38:35 +01:00
parent d12b1903f2
commit 5a5768a4ec

View File

@ -771,7 +771,7 @@ module.exports = React.createClass({
var mxIdPromise = q();
// If the user is a ROU, allow them to transition to a PWLU
if (cli.isGuest()) {
if (cli && cli.isGuest()) {
const SetMxIdDialog = sdk.getComponent('views.dialogs.SetMxIdDialog');
const defered = q.defer();
mxIdPromise = defered.promise;