mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-26 00:58:50 +00:00
filter unsupported paired currency exception
This commit is contained in:
parent
9a222544ba
commit
66e65736a5
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,7 @@ import 'dart:async';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:isar/isar.dart';
|
||||
import 'package:stackwallet/exceptions/exchange/unsupported_currency_exception.dart';
|
||||
import 'package:stackwallet/models/isar/exchange_cache/currency.dart';
|
||||
import 'package:stackwallet/models/isar/exchange_cache/pair.dart';
|
||||
import 'package:stackwallet/pages/buy_view/sub_widgets/crypto_selection_view.dart';
|
||||
|
@ -106,6 +107,10 @@ class _ExchangeCurrencySelectionViewState
|
|||
);
|
||||
|
||||
if (cn.value == null) {
|
||||
if (cn.exception is UnsupportedCurrencyException) {
|
||||
return currencies;
|
||||
}
|
||||
|
||||
await showDialog<void>(
|
||||
context: context,
|
||||
builder: (context) => StackDialog(
|
||||
|
|
Loading…
Reference in a new issue