mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-02-02 11:16:26 +00:00
fix
This commit is contained in:
parent
3feac41c61
commit
29fc88d841
1 changed files with 4 additions and 0 deletions
|
@ -102,6 +102,10 @@ abstract class AnonInvoicePageViewModelBase with Store {
|
|||
state = FailureState('Amount is too small');
|
||||
return;
|
||||
}
|
||||
if (maximum != null && amountInCrypto > maximum!) {
|
||||
state = FailureState('Amount is too big');
|
||||
return;
|
||||
}
|
||||
}
|
||||
final result = await anonPayApi.createInvoice(AnonPayRequest(
|
||||
cryptoCurrency: cryptoCurrency,
|
||||
|
|
Loading…
Reference in a new issue