disable moonpay for non-eth wallets

This commit is contained in:
fosse 2023-11-15 09:20:37 -05:00
parent 3e7087b7f3
commit e9a3ca2053

View file

@ -104,13 +104,7 @@ class MainActions {
final walletType = viewModel.type; final walletType = viewModel.type;
switch (walletType) { switch (walletType) {
case WalletType.bitcoin:
case WalletType.litecoin:
case WalletType.ethereum: case WalletType.ethereum:
case WalletType.bitcoinCash:
case WalletType.nano:
case WalletType.banano:
case WalletType.monero:
switch (defaultExchangeProvider) { switch (defaultExchangeProvider) {
case ExchangeProviderType.AskEachTime: case ExchangeProviderType.AskEachTime:
Navigator.pushNamed(context, Routes.choose_exchange_provider); Navigator.pushNamed(context, Routes.choose_exchange_provider);
@ -123,6 +117,14 @@ class MainActions {
break; break;
} }
break; break;
case WalletType.bitcoin:
case WalletType.litecoin:
case WalletType.bitcoinCash:
case WalletType.nano:
case WalletType.banano:
case WalletType.monero:
await Navigator.of(context).pushNamed(Routes.exchange);
break;
default: default:
await showPopUp<void>( await showPopUp<void>(
context: context, context: context,