AugurProject/augur-ui

View on GitHub
src/modules/events/actions/handle-new-block.js

Summary

Maintainability
A
0 mins
Test Coverage
import { syncBlockchain } from "modules/app/actions/sync-blockchain";
import syncUniverse from "modules/universe/actions/sync-universe";

export const handleNewBlock = block => dispatch => {
  dispatch(syncBlockchain());
  dispatch(syncUniverse());
};