nahmii-community / bridge

The Nahmii gateway, for bridging assets between L1 <-> L2.
1 stars 2 forks source link

Amount field behaviour not consistent #7

Closed HDauven closed 1 year ago

HDauven commented 3 years ago

Problem description

The amount field in the bridge/swap overview does not behave consistently when a user puts in numerical and non-numerical values.

Expected behaviour

timjlowe commented 3 years ago

Using Firefox: 1) Navigate to https://bridge.nahmii.io/ 2) Connect Wallet 3) Click on amount field 4) Enter 2.3 <--- this works. 5) Press backspace twice (to delete 2.3) (0 is then displayed) 6) Enter 3.2 Expected: 3.2 displayed Actual 32 displayed.

The first "." removes the zero. Pressing "." again displays correctly.