From 30a4e0e6a3e8312fd75f6d0b08d7e506f741e0e7 Mon Sep 17 00:00:00 2001 From: akirilyuk Date: Tue, 1 Feb 2022 15:53:00 +0100 Subject: [PATCH] fix handling non string text --- lib/tasks/cognigy/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/cognigy/index.js b/lib/tasks/cognigy/index.js index 8aca6883..87a9ac1c 100644 --- a/lib/tasks/cognigy/index.js +++ b/lib/tasks/cognigy/index.js @@ -23,7 +23,7 @@ const parseQuickReplies = (obj) => { const parseBotText = (evt) => { const {text, data} = evt; - if (text) return text; + if (text !== undefined) return String(text); switch (data?.type) { case 'quickReplies':