Browse Source

trigger coin store fetch to load data

all-modes
pbca26 8 years ago
parent
commit
98ce521140
  1. 5
      react/src/components/dashboard/coinTile/coinTileItem.js

5
react/src/components/dashboard/coinTile/coinTileItem.js

@ -107,6 +107,9 @@ class CoinTileItem extends React.Component {
dashboardChangeActiveCoin(coin, mode) {
if (coin !== this.props.ActiveCoin.coin) {
Store.dispatch(dashboardChangeActiveCoin(coin, mode));
this.dispatchCoinActions(coin, mode); // triggers fetch coin data from store if available
Store.dispatch(
stopInterval(
'sync',
@ -121,8 +124,6 @@ class CoinTileItem extends React.Component {
)
);
Store.dispatch(dashboardChangeActiveCoin(coin, mode));
if (mode === 'full') {
const _iguanaActiveHandle = setInterval(() => {
this.dispatchCoinActions(coin, mode);

Loading…
Cancel
Save