BootNodeDev / dAppBooster

A modern blockchain boilerplate built to quickly get you started with your next project.
https://dappbooster.dev
MIT License
5 stars 1 forks source link

Token input 'max' value not validated nor formatted #295

Open fernandomg opened 1 month ago

fernandomg commented 1 month ago

Describe the bug When clicking the max button, the input is filled with raw data, without being formatted (that is, adding the commas for the thousand separators), nor it's validated.

For the latter it's a bit weird, as it's the dapp defining the max value, it shouldn't be something to be checked, but it happens. I don't think it's necessary to fix that as it shouldn't pass a value greater than max (in the example video, the value has been hardcoded).

To Reproduce Steps to reproduce the behavior: Se the video

Expected behavior Clicking max, should fill the input with the value properly formatted

Screenshots

https://github.com/user-attachments/assets/e33f3bfb-265e-4440-b650-bb6cf25f6e0b