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;
|
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,
|
||||||
|
|
Loading…
Reference in a new issue