prevent calling unsupported payment method (#1836)

This commit is contained in:
Serhii
2024-11-28 21:02:10 +02:00
committed by GitHub
parent 63f26c034f
commit d8d4190608
2 changed files with 3 additions and 4 deletions
+1 -3
View File
@@ -155,13 +155,11 @@ abstract class BuySellViewModelBase extends WalletChangeListenerViewModel with S
final hasSelectedPaymentMethod = selectedPaymentMethod != null;
final isPaymentMethodLoaded = paymentMethodState is PaymentMethodLoaded;
final isBuySellQuotLoaded = buySellQuotState is BuySellQuotLoaded;
final isBuySellQuotFailed = buySellQuotState is BuySellQuotFailed;
return hasSelectedQuote &&
hasSelectedPaymentMethod &&
isPaymentMethodLoaded &&
isBuySellQuotLoaded &&
!isBuySellQuotFailed;
isBuySellQuotLoaded;
}
@computed