fetch rewards on page load #1754
1 changed files with 1 additions and 5 deletions
|
@ -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();
|
||||
|
||||
}
|
||||
|
||||
renderPageHeader() {
|
||||
|
|
Loading…
Add table
Reference in a new issue
This comment can be removed