mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
disable moonpay for non-eth wallets
This commit is contained in:
parent
3e7087b7f3
commit
e9a3ca2053
1 changed files with 8 additions and 6 deletions
|
@ -104,13 +104,7 @@ class MainActions {
|
|||
final walletType = viewModel.type;
|
||||
|
||||
switch (walletType) {
|
||||
case WalletType.bitcoin:
|
||||
case WalletType.litecoin:
|
||||
case WalletType.ethereum:
|
||||
case WalletType.bitcoinCash:
|
||||
case WalletType.nano:
|
||||
case WalletType.banano:
|
||||
case WalletType.monero:
|
||||
switch (defaultExchangeProvider) {
|
||||
case ExchangeProviderType.AskEachTime:
|
||||
Navigator.pushNamed(context, Routes.choose_exchange_provider);
|
||||
|
@ -123,6 +117,14 @@ class MainActions {
|
|||
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:
|
||||
await showPopUp<void>(
|
||||
context: context,
|
||||
|
|
Loading…
Reference in a new issue