Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad error message when filling number fields with text #60

Closed
andrepinho opened this issue Jul 20, 2022 · 1 comment
Closed

Bad error message when filling number fields with text #60

andrepinho opened this issue Jul 20, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@andrepinho
Copy link
Contributor

This is just a minor problem. When we fill a number field with text, the error message says "Expected number, received nan". I think it should say "Expected number, received text".

image

@andrepinho andrepinho added enhancement New feature or request good first issue Good for newcomers labels Jul 20, 2022
@danielweinmann danielweinmann removed the good first issue Good for newcomers label Jul 20, 2022
@danielweinmann
Copy link
Contributor

This is zod's message. If people want to use a different message, they can customize it per schema or gobally.

I'm closing the issue because I don't think we need to do anything about it. But feel free to reopen it at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants