Merge pull request #2131 from lbryio/fix-featured-claim
fix: featured reward claim
This commit is contained in:
commit
124de8f19c
2 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
import { connect } from 'react-redux';
|
||||
import { selectFeaturedUris, selectFetchingFeaturedUris, doFetchFeaturedUris } from 'lbry-redux';
|
||||
import { doFetchRewardedContent } from 'lbryinc';
|
||||
import { doFetchRewardedContent, doRewardList } from 'lbryinc';
|
||||
import DiscoverPage from './view';
|
||||
|
||||
const select = state => ({
|
||||
|
@ -11,6 +11,7 @@ const select = state => ({
|
|||
const perform = dispatch => ({
|
||||
fetchFeaturedUris: () => dispatch(doFetchFeaturedUris()),
|
||||
fetchRewardedContent: () => dispatch(doFetchRewardedContent()),
|
||||
fetchRewards: () => dispatch(doRewardList()),
|
||||
});
|
||||
|
||||
export default connect(
|
||||
|
|
|
@ -24,6 +24,7 @@ class DiscoverPage extends React.PureComponent<Props> {
|
|||
this.continousFetch = setInterval(() => {
|
||||
fetchFeaturedUris();
|
||||
fetchRewardedContent();
|
||||
fetchRewards();
|
||||
}, 1000 * 60 * 60);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue