Skip to content

Commit

Permalink
fix send message null when reqeat prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
khanh1902 committed Jun 8, 2024
1 parent 39b3cee commit 1f67981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/Prompting.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Prompting extends ComponentDialog {

const notMatchMsg = getPrompt(contents, language, retry);

if (notMatchMsg) {
if (notMatchMsg && notMatchMsg.message) {
notMatchMsg.message = replaceData({ text: notMatchMsg.message, data: variables });

notMatchMsg.message = await translate(notMatchMsg.message, notMatchMsg.language, language);
Expand Down

0 comments on commit 1f67981

Please sign in to comment.