mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
minor fixes
This commit is contained in:
parent
2f319b1726
commit
d73bdab11b
2 changed files with 3 additions and 1 deletions
|
@ -136,6 +136,8 @@ abstract class ExchangeTradeViewModelBase with Store {
|
||||||
tradesStore.trade!.from.tag != null ? '${tradesStore.trade!.from.tag}' + ' ' : '';
|
tradesStore.trade!.from.tag != null ? '${tradesStore.trade!.from.tag}' + ' ' : '';
|
||||||
final tagTo = tradesStore.trade!.to.tag != null ? '${tradesStore.trade!.to.tag}' + ' ' : '';
|
final tagTo = tradesStore.trade!.to.tag != null ? '${tradesStore.trade!.to.tag}' + ' ' : '';
|
||||||
items.clear();
|
items.clear();
|
||||||
|
|
||||||
|
if(trade.provider != ExchangeProviderDescription.thorChain)
|
||||||
items.add(ExchangeTradeItem(
|
items.add(ExchangeTradeItem(
|
||||||
title: "${trade.provider.title} ${S.current.id}", data: '${trade.id}', isCopied: true));
|
title: "${trade.provider.title} ${S.current.id}", data: '${trade.id}', isCopied: true));
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ abstract class ExchangeViewModelBase extends WalletChangeListenerViewModel with
|
||||||
|
|
||||||
/// if the provider is not in the user settings (user's first time or newly added provider)
|
/// if the provider is not in the user settings (user's first time or newly added provider)
|
||||||
/// then use its default value decided by us
|
/// then use its default value decided by us
|
||||||
selectedProviders = ObservableList.of(providersForCurrentPair()
|
selectedProviders = ObservableList.of(providerList
|
||||||
.where((element) => exchangeProvidersSelection[element.title] == null
|
.where((element) => exchangeProvidersSelection[element.title] == null
|
||||||
? element.isEnabled
|
? element.isEnabled
|
||||||
: (exchangeProvidersSelection[element.title] as bool))
|
: (exchangeProvidersSelection[element.title] as bool))
|
||||||
|
|
Loading…
Reference in a new issue