From 9f782956caaf1fb58e4187c9b2844d4daf06d1ba Mon Sep 17 00:00:00 2001 From: Matthew Fosse Date: Thu, 21 Mar 2024 09:18:48 -0700 Subject: [PATCH] just set hard cap on invoice max --- lib/view_model/lightning_invoice_page_view_model.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/view_model/lightning_invoice_page_view_model.dart b/lib/view_model/lightning_invoice_page_view_model.dart index 16ce4c82a..65c4fd9b1 100644 --- a/lib/view_model/lightning_invoice_page_view_model.dart +++ b/lib/view_model/lightning_invoice_page_view_model.dart @@ -84,7 +84,7 @@ abstract class LightningInvoicePageViewModelBase with Store { state = FailureState('Amount is too small'); return; } - if (maximum != null && maximum != 0 && amountInCrypto > maximum!) { + if (amountInCrypto > 4000000) { state = FailureState('Amount is too big'); return; }