🐛 (number) Accept number with commas on WA

Closes #1773
This commit is contained in:
Baptiste Arnaud 2024-09-12 19:40:04 +02:00
parent 445196e37d
commit 8a28c84415
No known key found for this signature in database

View File

@ -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 =