Browse Source

No countervalues to load if there is no accounts

master
Gaëtan Renaudeau 7 years ago
parent
commit
62678af9f7
  1. 4
      src/helpers/countervalues.js

4
src/helpers/countervalues.js

@ -18,7 +18,9 @@ const pairsSelector = createSelector(
counterValueExchangeSelector,
state => state,
(currencies, counterValueCurrency, counterValueExchange, state) =>
[
currencies.length === 0
? []
: [
{ from: intermediaryCurrency, to: counterValueCurrency, exchange: counterValueExchange },
].concat(
currencies.filter(c => c.ticker !== intermediaryCurrency.ticker).map(currency => ({

Loading…
Cancel
Save