This repository was archived by the owner on Feb 23, 2021. It is now read-only.
This repository was archived by the owner on Feb 23, 2021. It is now read-only.
AmountInputField behaviour not constrained #615
Open
Description
Description
Various undesired states can be created in the amount input field.
-
Negative amount
-
Multiple leading zeros
-
More than two decimals
-
Label gets too large
-
Entering
0-
- Multiple dots
...4
Steps to reproduce the behavior
Using Lightning-linux-x86_64v0.2.0-prealpha.25.AppImage
- Go to payment request screen
- Enter invalid values
Expected behavior
At minimum, any value that is not a valid amount should be impossible to enter (negative, three decimals).
In addition to that, it would be good to keep the formatting consistent. So either .50
or 0.50
but not make both possible. Same for 3.5
vs 3.50
.
Actual behavior
See screenshots
Metadata
Metadata
Assignees
Labels
No labels