Skip to content

Commit

Permalink
fix(price chart preferences selectors)
Browse files Browse the repository at this point in the history
  • Loading branch information
sixtedemaupeou committed May 3, 2018
1 parent 6741edb commit c3ef893
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { lift, map } from 'ramda'
import { lift, map, prop } from 'ramda'
import { selectors } from 'data'

export const getData = (state) => {
const currencyR = selectors.core.settings.getCurrency(state)
const { cacheCoin, cacheTime } = selectors.preferences.getPriceChart(state)
const priceChartPref = selectors.preferences.getPriceChart(state)
const cacheCoin = prop('coin', priceChartPref)
const cacheTime = prop('time', priceChartPref)
const coin = selectors.components.priceChart.getCoin(state)
const time = selectors.components.priceChart.getTime(state)
const priceIndexSeriesDataR = selectors.core.data.misc.getPriceIndexSeries(state)
Expand Down

0 comments on commit c3ef893

Please sign in to comment.