From 0d174ffe9a55114388d35d3db33b192525bd26c8 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Fri, 10 Nov 2017 11:13:52 +0000 Subject: [PATCH] Fix tests --- src/components/structures/MatrixChat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 1ca1992d75..c201d139c5 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -386,7 +386,7 @@ module.exports = React.createClass({ const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog"); // Start the onboarding process for certain actions - if (MatrixClientPeg.get().isGuest() && + if (MatrixClientPeg.get() && MatrixClientPeg.get().isGuest() && ONBOARDING_FLOW_STARTERS.includes(payload.action) ) { // This will cause `payload` to be dispatched later, once a