diff --git a/Node/core-globalMessageHandlers/bot.js b/Node/core-globalMessageHandlers/bot.js index 879d13e0a0..f633c90f6b 100644 --- a/Node/core-globalMessageHandlers/bot.js +++ b/Node/core-globalMessageHandlers/bot.js @@ -49,8 +49,9 @@ bot.dialog('AddNumber', [ .triggerAction({matches: /^add$/i}) .cancelAction('CancelAddNumber', 'Operation cancelled', { matches: /^cancel$/, - onSelectAction: (session, args) => { + onSelectAction: (session, args, next) => { session.endConversation(`Operation cancelled.`); + next(); }, confirmPrompt: `Are you sure you wish to cancel?` })