From 82f2d24dd33a9e8ec9ea227bcab515e72e26ba97 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 28 Aug 2018 17:53:20 -0400 Subject: [PATCH] change name to fetchRewardedContent --- src/renderer/page/discover/index.js | 2 +- src/renderer/page/discover/view.jsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/renderer/page/discover/index.js b/src/renderer/page/discover/index.js index e567e6a73..6a35f0029 100644 --- a/src/renderer/page/discover/index.js +++ b/src/renderer/page/discover/index.js @@ -10,7 +10,7 @@ const select = state => ({ const perform = dispatch => ({ fetchFeaturedUris: () => dispatch(doFetchFeaturedUris()), - fetchRewards: () => dispatch(doFetchRewardedContent()), + fetchRewardedContent: () => dispatch(doFetchRewardedContent()), }); export default connect( diff --git a/src/renderer/page/discover/view.jsx b/src/renderer/page/discover/view.jsx index 64f1e0c96..4579f5394 100644 --- a/src/renderer/page/discover/view.jsx +++ b/src/renderer/page/discover/view.jsx @@ -5,7 +5,7 @@ import CategoryList from 'component/categoryList'; type Props = { fetchFeaturedUris: () => void, - fetchRewards: () => void, + fetchRewardedContent: () => void, fetchingFeaturedUris: boolean, featuredUris: {}, }; @@ -17,13 +17,13 @@ class DiscoverPage extends React.PureComponent { } componentWillMount() { - const { fetchFeaturedUris, fetchRewards } = this.props; + const { fetchFeaturedUris, fetchRewardedContent } = this.props; fetchFeaturedUris(); - fetchRewards(); + fetchRewardedContent(); this.continousFetch = setInterval(() => { fetchFeaturedUris(); - fetchRewards(); + fetchRewardedContent(); }, 1000 * 60 * 60); }