2
0

Add dog insurance offer template

Closes #484
This commit is contained in:
Baptiste Arnaud
2023-05-04 15:32:13 -04:00
parent 55db360200
commit 8347e5b2a8
5 changed files with 832 additions and 3 deletions

View File

@@ -247,6 +247,16 @@ const getOutgoingEdgeId =
)
if (matchedItem?.outgoingEdgeId) return matchedItem.outgoingEdgeId
}
if (
block.type === InputBlockType.PICTURE_CHOICE &&
!block.options.isMultipleChoice &&
reply
) {
const matchedItem = block.items.find(
(item) => parseVariables(variables)(item.title) === reply
)
if (matchedItem?.outgoingEdgeId) return matchedItem.outgoingEdgeId
}
return block.outgoingEdgeId
}