TanStackT
TanStack2y ago
4 replies
brilliant-lime

Input type error with default values

So I have a couple inputs of type number that throw “expected string but got number” errors. This occurs when I submit a form populated with default values (from the db) for a user to edit, and submit the form without touching the numbered inputs.

If I edit the inputs before submitting the error doesn’t occur. All validation is of type number and the default values are also of type number.

Source: https://github.com/DollaHane/DearDegens/blob/main/src/components/pageEditMint/EditListing.tsx
IMG_3473.png
GitHub
The next generation experience in public classified ads - DollaHane/DearDegens
DearDegens/src/components/pageEditMint/EditListing.tsx at main · Do...
Was this page helpful?