mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-19 21:04:33 +08:00
parent
445196e37d
commit
8a28c84415
@ -14,7 +14,9 @@ export const validateNumber = (
|
||||
) => {
|
||||
if (inputValue === '') return false
|
||||
|
||||
const parsedNumber = Number(inputValue)
|
||||
const parsedNumber = Number(
|
||||
inputValue.includes(',') ? inputValue.replace(',', '.') : inputValue
|
||||
)
|
||||
if (isNaN(parsedNumber)) return false
|
||||
|
||||
const min =
|
||||
|
||||
Loading…
Reference in New Issue
Block a user