mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
fix handling non string text
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user