diff --git a/lib/view_model/lightning_invoice_page_view_model.dart b/lib/view_model/lightning_invoice_page_view_model.dart index 52c79b3cc..16ce4c82a 100644 --- a/lib/view_model/lightning_invoice_page_view_model.dart +++ b/lib/view_model/lightning_invoice_page_view_model.dart @@ -84,11 +84,7 @@ abstract class LightningInvoicePageViewModelBase with Store { state = FailureState('Amount is too small'); return; } - if (maximum == 0) { - state = FailureState('Your inbound liquidity is 0!'); - return; - } - if (maximum != null && amountInCrypto > maximum!) { + if (maximum != null && maximum != 0 && amountInCrypto > maximum!) { state = FailureState('Amount is too big'); return; }