wslyvh / nexth

A Next.js + Ethereum starter kit with Viem, Wagmi, Web3Modal, SIWE, Tailwind, daisyUI and more to quickly ship production-ready Web3 Apps âš¡
https://nexth.vercel.app/
MIT License
671 stars 141 forks source link

Fix input validation in TokenQuantityInput component #37

Closed hone1er closed 6 months ago

hone1er commented 6 months ago

This pull request fixes the input validation in the TokenQuantityInput component to prevent a UI error. The handleChange function now checks if the input value contains only numbers and one decimal point before updating the state.

Error without the validation 👇

Screenshot 2024-04-25 at 12 10 17 PM
vercel[bot] commented 6 months ago

@hone1er is attempting to deploy a commit to the useWeb3 Team on Vercel.

A member of the Team first needs to authorize it.