[Eco Bounty] Missing validation – Allows negative input in Convert form
Wallet Address:0x0f06443fbfc0Eb7D1f1c98DC74005546e2f70AAb
Bug Description:
In the Convert section of the dApp, users can input negative numbers (e.g., -2) as the token amount without triggering any validation or error message. The system accepts the value visually, which may lead to user confusion.
Device & Testing Environment:
Device: Dell Laptop
OS: Ubuntu
Browser: Chrome
Steps to Reproduce:
Go to https://bridge.iotex.io
Click on the Convert tab or Bridge tab
In the amount input field, enter a negative number like
-2Observe: No warning or error is shown, and the input is accepted
Actual Result:
Negative values are accepted without any validation or UI feedback
Expected Result:
Input field should only allow positive numbers greater than zero
Display inline validation error when user enters a negative value
Prevent submission or further interaction until corrected
Log in to comment and vote
Comments2
Terry Xu
Jul 29, 2025
No big issue here. If the amount is invalid, we’ve already added a prompt on the button.
klrt0120
Jul 29, 2025
@Terry Xu I know your intention is to not allow the button to be clicked when the value is invalid. However, the "Convert" tab has an "Invalid Amount" item if the value is invalid. I was wrong in thinking that it had no validation. Maybe because of the color and placement of the validation, it doesn't really stand out like traditional input validations. If possible, could you review with different people's experiences? Thanks