qml: don't check min amount for amount-less invoice
This commit is contained in:
@@ -280,7 +280,7 @@ class QEInvoiceParser(QEInvoice):
|
|||||||
if self.status in [PR_UNPAID, PR_FAILED]:
|
if self.status in [PR_UNPAID, PR_FAILED]:
|
||||||
if self.get_max_spendable_lightning() >= self.amount.satsInt:
|
if self.get_max_spendable_lightning() >= self.amount.satsInt:
|
||||||
lnaddr = self._effectiveInvoice._lnaddr
|
lnaddr = self._effectiveInvoice._lnaddr
|
||||||
if self.amount.satsInt < lnaddr.amount * COIN:
|
if lnaddr.amount and self.amount.satsInt < lnaddr.amount * COIN:
|
||||||
self.userinfo = _('Cannot pay less than the amount specified in the invoice')
|
self.userinfo = _('Cannot pay less than the amount specified in the invoice')
|
||||||
else:
|
else:
|
||||||
self.canPay = True
|
self.canPay = True
|
||||||
|
|||||||
Reference in New Issue
Block a user