This commit is contained in:
Matthew Fosse 2024-03-07 07:40:08 -08:00
parent 3feac41c61
commit 29fc88d841

View file

@ -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,