Fix tests

pull/21833/head
Luke Barnard 2017-11-10 11:13:52 +00:00
parent f4428267a1
commit 0d174ffe9a
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ module.exports = React.createClass({
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog"); const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
// Start the onboarding process for certain actions // Start the onboarding process for certain actions
if (MatrixClientPeg.get().isGuest() && if (MatrixClientPeg.get() && MatrixClientPeg.get().isGuest() &&
ONBOARDING_FLOW_STARTERS.includes(payload.action) ONBOARDING_FLOW_STARTERS.includes(payload.action)
) { ) {
// This will cause `payload` to be dispatched later, once a // This will cause `payload` to be dispatched later, once a