FuelLabs/fuels-wallet

Leading zeros in Tip field

Opened this issue · 0 comments

As can be shown in the attached video, I can add leading zeros into the Tip edit field, one I enter a decimal point, then all the zeros except the first one are deleted.

leading.zeros.mov

It shouldn't be possible to enter leading zeros into this field.

As a side-effect, when clicking backspace on one of the many leading zeros, 2 zeros are deleted and not one, see the vid below.

deleting.2.chars.mov

Once the leading zeros problem is resolved, the deletion problem should also be solved.