update error message to be more clear

This commit is contained in:
Matthew Fosse 2024-03-21 08:36:14 -07:00
parent d1ab9e3827
commit 381363c3cc

View file

@ -84,6 +84,10 @@ 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!) {
state = FailureState('Amount is too big');
return;