diff --git a/apps/builder/src/utils/helpers.ts b/apps/builder/src/utils/helpers.ts index 3a81019bf..71ea7da4c 100644 --- a/apps/builder/src/utils/helpers.ts +++ b/apps/builder/src/utils/helpers.ts @@ -49,7 +49,7 @@ export const blockHasOptions = (block: Block) => 'options' in block export const parseVariableHighlight = (content: string, typebot: Typebot) => { const varNames = typebot.variables.map((v) => v.name) return content.replace(/\{\{(.*?)\}\}/g, (fullMatch, foundVar) => { - if (varNames.some((val) => foundVar.includes(val))) { + if (varNames.some((val) => foundVar === val)) { return `${fullMatch.replace( /{{|}}/g, ''