Closed bumi closed 2 years ago
Request errors are now handled, however it would be possible to run some validation on the client before even requesting the invoice. (min <= amount <= max)
I noticed the input fields have the correct min
and max
values but there is no validation? 🤔
Describe the bug Currently we do not handle errors of the LNURL-pay callback
To Reproduce Steps to reproduce the behavior:
Expected behavior Show an error alert to the user
related code: https://github.com/getAlby/lightning-browser-extension/blob/master/src/app/screens/LNURLPay.tsx#L127