Skip to content

Commit

Permalink
fix reply checking logic
Browse files Browse the repository at this point in the history
  • Loading branch information
KhudaDad414 committed Nov 17, 2023
1 parent 9e99f90 commit c383d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export async function trigger({
functionResult?.reply?.forEach((reply) => {
const replyMessages = createReplies(reply, message, parsedAsyncAPI)
console.log({ replyMessages })
if (replyMessages || replyMessages.length < 1) {
if (!(replyMessages && replyMessages.length > 0)) {
return
}
replyMessages.forEach(replyMessage => {
Expand Down

0 comments on commit c383d35

Please sign in to comment.