Skip to content

Commit

Permalink
fix price chart time
Browse files Browse the repository at this point in the history
  • Loading branch information
salomegeo committed May 4, 2018
1 parent fc7c5a8 commit c4f97c5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export default ({ coreSagas }) => {
try {
const { coin } = action.payload
const currency = 'USD'
yield effects.select(S.getTime)
const start = calculateStart(coin, 'tt')
const scale = calculateScale(coin, '')
const time = yield effects.select(S.getTime)
const start = calculateStart(coin, time)
const scale = calculateScale(coin, time)
yield effects.put(actions.core.data.misc.fetchPriceIndexSeries(coin, currency, start, scale))
} catch (e) {
// TODO: create error wrapper!
Expand Down

0 comments on commit c4f97c5

Please sign in to comment.