Skip to content
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
@joostjager

Description

@joostjager

Description

Various undesired states can be created in the amount input field.

image

  • Negative amount

  • Multiple leading zeros

  • More than two decimals

  • Label gets too large

  • Entering 0-

image

  • Multiple dots ...4

image

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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions