mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-23 11:54:24 +00:00
fix handling non string text
This commit is contained in:
1 parent
924627a50c
commit
30a4e0e6a3
1 file changed
+1
-1
@@ -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