From 29990296d264e7ca6a84c04944460497e18e2fb2 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 11 Jul 2017 11:02:23 +0100 Subject: [PATCH] Lint --- src/components/structures/MatrixChat.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index f9166db748..75a15d71ee 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -801,8 +801,8 @@ module.exports = React.createClass({ }); }, - _chatCreateOrReuse: function(userId, go_home_on_cancel) { - if (go_home_on_cancel === undefined) go_home_on_cancel = true; + _chatCreateOrReuse: function(userId, goHomeOnCancel) { + if (goHomeOnCancel === undefined) goHomeOnCancel = true; const ChatCreateOrReuseDialog = sdk.getComponent( 'views.dialogs.ChatCreateOrReuseDialog', @@ -834,7 +834,7 @@ module.exports = React.createClass({ const close = Modal.createDialog(ChatCreateOrReuseDialog, { userId: userId, onFinished: (success) => { - if (!success && go_home_on_cancel) { + if (!success && goHomeOnCancel) { // Dialog cancelled, default to home dis.dispatch({ action: 'view_home_page' }); }