Skip to content

Commit

Permalink
fix(engine): 🐛 Parse condition value variable
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Feb 20, 2022
1 parent 37ef56b commit 65c206e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bot-engine/src/services/logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const executeComparison =
if (!comparison?.variableId) return false
const inputValue =
variables.find((v) => v.id === comparison.variableId)?.value ?? ''
const { value } = comparison
const value = parseVariables(variables)(comparison.value)
if (isNotDefined(value)) return false
switch (comparison.comparisonOperator) {
case ComparisonOperators.CONTAINS: {
Expand Down

2 comments on commit 65c206e

@vercel
Copy link

@vercel vercel bot commented on 65c206e Feb 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 65c206e Feb 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app
app.typebot.io

Please sign in to comment.