2
0

🐛 (payment) Fix payment redirection

This commit is contained in:
Baptiste Arnaud
2024-06-26 10:59:11 +02:00
parent 6db0464fd7
commit 6af47a8cfe
16 changed files with 182 additions and 38 deletions

View File

@@ -226,7 +226,7 @@ export const continueBotFlow = async (
return {
...chatReply,
lastMessageNewFormat:
formattedReply !== reply ? formattedReply : undefined,
formattedReply !== reply?.text ? formattedReply : undefined,
}
}
@@ -235,7 +235,7 @@ export const continueBotFlow = async (
messages: [],
newSessionState,
lastMessageNewFormat:
formattedReply !== reply ? formattedReply : undefined,
formattedReply !== reply?.text ? formattedReply : undefined,
visitedEdges,
setVariableHistory,
}
@@ -272,7 +272,8 @@ export const continueBotFlow = async (
return {
...chatReply,
lastMessageNewFormat: formattedReply !== reply ? formattedReply : undefined,
lastMessageNewFormat:
formattedReply !== reply?.text ? formattedReply : undefined,
}
}