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');
|
state = FailureState('Amount is too small');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (maximum == 0) {
|
if (maximum != null && maximum != 0 && amountInCrypto > maximum!) {
|
||||||
state = FailureState('Your inbound liquidity is 0!');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (maximum != null && amountInCrypto > maximum!) {
|
|
||||||
state = FailureState('Amount is too big');
|
state = FailureState('Amount is too big');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue