How do I validate a number field so an error appears if an user enters a string? #2819
Unanswered
alealpha2000
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a validation schema like this:
'PrecioUnitario': Yup.number().nullable().min(0, 'El precio unitario debe ser mayor a 0'),
And I use but no error message appears. If an user enters a string a null value is sent instead. How do I add an error when a user enters a string?
Beta Was this translation helpful? Give feedback.
All reactions