Share feedback, ideas and get community help

Updated 6 months ago

Receiving a WhatsApp user response as NaN

At a glance

The community member is passing a value with a comma on WhatsApp, but on Typebot, they are receiving NaN (Not a Number). The issue is that in Brazil, the comma is used instead of the dot for decimal values. The community members suggest that replacing the comma with a dot using {{valorSimulacao}}.replace(",",".") might work. The Typebot maintainer acknowledges the issue and promises to fix it soon. An external resource is provided, a GitHub issue related to this problem.

Useful resources
Hi there.

Can you guys help me, please?

On WhatsApp, i'm passing a value with comma, but on typebot im receiving NaN as the image shows, but, i dont get'it why, if is my problem or typebot itself.
Attachments
Captura_de_Tela_2024-09-03_as_09.19.56.png
Captura_de_Tela_2024-09-03_as_09.26.37.png
B
M
V
7 comments
Does it work if typing 851.43?
yes, it work
The problem is, here in Brazil, we use the comma instead the dot
So, the users are typing with comma and we are receiving NaN
Talvez isso funcione? Maybe it works?

{{valorSimulacao}}.replace(",",".")
Attachments
image.png
image.png
Thanks for the report, I will make sure to fix this asap
Add a reply
Sign up and join the conversation on Discord