mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
revert and fix
This commit is contained in:
parent
381363c3cc
commit
d0c2c2802b
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue