From a31dacc4bc1abe66c3a49e6c9541696490db7b30 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 11 Dec 2018 12:43:56 +0100 Subject: [PATCH] allow logout dialog to be cancelled (can't see why not?) --- src/components/views/dialogs/LogoutDialog.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/views/dialogs/LogoutDialog.js b/src/components/views/dialogs/LogoutDialog.js index 0c72279f3a..3c4872188a 100644 --- a/src/components/views/dialogs/LogoutDialog.js +++ b/src/components/views/dialogs/LogoutDialog.js @@ -39,14 +39,15 @@ export default (props) => { const onFinished = (confirmed) => { if (confirmed) { dis.dispatch({action: 'logout'}); - if (props.onFinished) { - props.onFinished(); - } + } + // close dialog + if (props.onFinished) { + props.onFinished(); } }; return ({description}} button={_t("Sign out")}