webui
webui copied to clipboard
Form allows me to send more than my balance ... makes a big fuss about it in error report
Describe the bug
Dialog allowed me to input more than my balance. Error when it broke was quite long and ugly.
Steps to reproduce
Steps to reproduce the behavior:
- select Pay
- put in amount more than you have available
- Send
Expected behavior
Send to be disabled if amount is larger than balance
Screenshots
System:
Linux, Mozilla, RC7
Additional context
Add any other context about the problem here.
Thanks for opening this issue! We already had discussions about that. The problem is that if one channel does not have enough balance (less than what you type in the dialog), another channel could have the right amount and it could be send as a mediated transfer to your partner.
So at the moment we could only show an error if you type in a bigger amount than the balance of the channel with the highest deposit.
Btw there won't be a pay button on channel in the redesign anymore, because it is not guaranteed that the channel would be used for the payment.