mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
fix onramper network tag plus UI (#1832)
This commit is contained in:
@@ -155,13 +155,18 @@ 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;
|
||||
isBuySellQuotLoaded &&
|
||||
!isBuySellQuotFailed;
|
||||
}
|
||||
|
||||
@computed
|
||||
bool get isBuySellQuotFailed => buySellQuotState is BuySellQuotFailed;
|
||||
|
||||
@action
|
||||
void reset() {
|
||||
cryptoCurrency = wallet.currency;
|
||||
|
||||
Reference in New Issue
Block a user