mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-12 09:32:33 +00:00
update error message to be more clear
This commit is contained in:
parent
d1ab9e3827
commit
381363c3cc
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue