fetch rewards on page load #1754

Merged
daovist merged 3 commits from fetch-rewards into master 2018-07-15 02:10:22 +02:00
Showing only changes of commit 3325dfda47 - Show all commits

View file

@ -28,11 +28,7 @@ type Props = {
class RewardsPage extends React.PureComponent<Props> {
componentDidMount() {
const { fetching, rewards, fetchRewards } = this.props;
if (!fetching && (!rewards || !rewards.length)) {
fetchRewards();
}
this.props.fetchRewards();
neb-b commented 2018-07-11 19:33:06 +02:00 (Migrated from github.com)
Review

This comment can be removed

This comment can be removed
}
renderPageHeader() {