BoltzExchange / boltz-web-app

Boltz Web App
https://boltz.exchange
GNU Affero General Public License v3.0
58 stars 19 forks source link

Normal Swaps: Disable "Create Invoice via WebLN" button when amounts are invalid #380

Closed kilrau closed 6 months ago

kilrau commented 8 months ago

image

dni commented 8 months ago

why you can just enter the amount then as if you just past an invoice, it will get then set automatically

kilrau commented 8 months ago

why you can just enter the amount then as if you just past an invoice, it will get then set automatically

Only for amount 0 then fine leave it enabled for this, but for all other values out of min/max disable the button please since it unavoidably leads to an error state.

kilrau commented 7 months ago

Summary: leave it enabled for default 0 state as here alby let's me choose an amount

Image

but disable for all amounts that are not 0 but outside of min/max range as here the anmount is fixed in Alby and the invoice is guaranteed to not be accepted by web app

Image