Input Validation: Allowing Alphabetic Characters in Invoice Creation and Payment Fields
Describe your enhancement idea
On the send view, users are able to input alphabetic characters when creating an invoice, which should not be allowed. Similarly, when attempting to pay an invoice with alphabetic characters, users receive an error message stating 'amount must be specified when paying a zero amount invoice'.
Steps to Reproduce:
- Navigate to the send view.
- Type in alphabetic characters in the input field.
- Attempt to create the invoice.
- Navigate to the payment view.
- Input alphabetic characters when trying to pay an invoice.
- Observe the error message received.
Expected Behavior:
- Users should be restricted from inputting alphabetic characters when creating invoices.
- When attempting to pay an invoice with alphabetic characters, users should receive a more informative error message or be prevented from proceeding.
We can limit the input here to be numeric - it should be a one line fix
It appears the keyboards are set appropriately here, it's only with a full text keyboard (like in dev) that you can get around this - not sure it's worth adding extra logic here
Yeah can't recreate it in my phone, but one issue that might be there is we shouldn't be able to proceed with 0 sats input which results in bad argument error