Enable exchange for haven wallets. (#495)

This commit is contained in:
mkyq
2022-09-01 19:46:14 +01:00
committed by GitHub
parent 0931696fa1
commit 04be884357
5 changed files with 14 additions and 23 deletions
+1 -17
View File
@@ -314,22 +314,6 @@ class DashboardPage extends BasePage {
}
Future<void> _onClickExchangeButton(BuildContext context) async {
final walletType = walletViewModel.type;
switch (walletType) {
case WalletType.haven:
await showPopUp<void>(
context: context,
builder: (BuildContext context) {
return AlertWithOneAction(
alertTitle: 'Exchange',
alertContent: 'Exchange for this asset is not supported yet.',
buttonText: S.of(context).ok,
buttonAction: () => Navigator.of(context).pop());
});
break;
default:
await Navigator.of(context).pushNamed(Routes.exchange);
}
await Navigator.of(context).pushNamed(Routes.exchange);
}
}