From 0d858ad1c7431349bec469cb5990a169bd21c10e Mon Sep 17 00:00:00 2001 From: GotPPay Date: Tue, 23 Jan 2018 01:46:02 +0100 Subject: [PATCH] List only questions with explanation --- backend/models/alexa.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/models/alexa.js b/backend/models/alexa.js index 801c5f9..3301a8e 100644 --- a/backend/models/alexa.js +++ b/backend/models/alexa.js @@ -35,7 +35,7 @@ module.exports = { let listOfPossibleQuestions = ''; activeSkill.intents.map (intent => { - if (intent.questions.length > 0) { + if (intent.questions.length > 0 && intent.intentExplanation) { listOfPossibleQuestions += intent.intentExplanation + intent.questions[0] +