typebot.io icon indicating copy to clipboard operation
typebot.io copied to clipboard

Variable values with hyphens displaying incorrectly in chat

Open heloineto opened this issue 10 months ago • 1 comments

Describe the bug Some variables are not being handled properly. The value should be "82510-070", but in the chat it prints as "82454" for some reason

Image

Image

To Reproduce Steps to reproduce the behavior:

  1. Create a variable
  2. Set a custom value for the variable with a "-"
  3. Observe the variable value is different in the chat

Expected behavior For the value to be the same

heloineto avatar Jun 05 '25 11:06 heloineto

This is an issue indeed. That's because of a legacy behavior, before we did not have the option to choose between Text or Code, so we always try to resolve the content as code, even if we select Text here (for retrocompatibility).

Will be fixed once we deploy this

baptisteArno avatar Jun 05 '25 12:06 baptisteArno