remove rogue rewardList call
This commit is contained in:
parent
49a6a8b8d9
commit
75c326c98b
3 changed files with 3 additions and 8 deletions
|
@ -4,7 +4,6 @@ import { connect } from 'react-redux';
|
|||
import {
|
||||
selectUser,
|
||||
selectAccessToken,
|
||||
doRewardList,
|
||||
doFetchAccessToken,
|
||||
selectGetSyncErrorMessage,
|
||||
selectUploadCount,
|
||||
|
@ -38,7 +37,6 @@ const select = state => ({
|
|||
});
|
||||
|
||||
const perform = dispatch => ({
|
||||
fetchRewards: () => dispatch(doRewardList()),
|
||||
fetchTransactions: (page, pageSize) => dispatch(doFetchTransactions(page, pageSize)),
|
||||
fetchAccessToken: () => dispatch(doFetchAccessToken()),
|
||||
fetchChannelListMine: () => dispatch(doFetchChannelListMine()),
|
||||
|
|
|
@ -39,7 +39,6 @@ type Props = {
|
|||
user: ?{ id: string, has_verified_email: boolean, is_reward_approved: boolean },
|
||||
location: { pathname: string, hash: string, search: string },
|
||||
history: { push: string => void },
|
||||
fetchRewards: () => void,
|
||||
fetchTransactions: (number, number) => void,
|
||||
fetchAccessToken: () => void,
|
||||
fetchChannelListMine: () => void,
|
||||
|
@ -62,7 +61,6 @@ type Props = {
|
|||
function App(props: Props) {
|
||||
const {
|
||||
theme,
|
||||
fetchRewards,
|
||||
fetchTransactions,
|
||||
user,
|
||||
fetchAccessToken,
|
||||
|
@ -144,11 +142,10 @@ function App(props: Props) {
|
|||
fetchAccessToken();
|
||||
|
||||
// @if TARGET='app'
|
||||
fetchRewards();
|
||||
fetchTransactions(1, TX_LIST.LATEST_PAGE_SIZE);
|
||||
fetchChannelListMine(); // This needs to be done for web too...
|
||||
// @endif
|
||||
}, [fetchRewards, fetchTransactions, fetchAccessToken, fetchChannelListMine, wrapperElement]);
|
||||
}, [fetchTransactions, fetchAccessToken, fetchChannelListMine, wrapperElement]);
|
||||
|
||||
useEffect(() => {
|
||||
// $FlowFixMe
|
||||
|
|
|
@ -7182,9 +7182,9 @@ lbry-redux@lbryio/lbry-redux#6f9ee589a7834851b2fc9d97f807fbc0a0dd6451:
|
|||
reselect "^3.0.0"
|
||||
uuid "^3.3.2"
|
||||
|
||||
lbryinc@lbryio/lbryinc#6a59102c52673502569d2c43bd4ee58c315fb2e4:
|
||||
lbryinc@lbryio/lbryinc#3fc653053128073e7824b6710582b65711bd258f:
|
||||
version "0.0.1"
|
||||
resolved "https://codeload.github.com/lbryio/lbryinc/tar.gz/6a59102c52673502569d2c43bd4ee58c315fb2e4"
|
||||
resolved "https://codeload.github.com/lbryio/lbryinc/tar.gz/3fc653053128073e7824b6710582b65711bd258f"
|
||||
dependencies:
|
||||
reselect "^3.0.0"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue