UserSignUp: skip user fetch
Talking to Tom, we think this can be removed, since the regular startup could would eventually call `new` to get a token.
This commit is contained in:
parent
eccb542610
commit
569ff3077f
2 changed files with 0 additions and 8 deletions
|
@ -4,7 +4,6 @@ import { selectGetSyncIsPending, selectSyncHash, selectPrefsReady } from 'redux/
|
|||
import { doClaimRewardType } from 'redux/actions/rewards';
|
||||
import { doSetClientSetting } from 'redux/actions/settings';
|
||||
import { selectClaimedRewards, makeSelectIsRewardClaimPending } from 'redux/selectors/rewards';
|
||||
import { doUserFetch } from 'redux/actions/user';
|
||||
import {
|
||||
selectUserIsPending,
|
||||
selectYoutubeChannels,
|
||||
|
@ -45,7 +44,6 @@ const select = (state) => ({
|
|||
});
|
||||
|
||||
const perform = (dispatch) => ({
|
||||
fetchUser: () => dispatch(doUserFetch()),
|
||||
claimConfirmEmailReward: () =>
|
||||
dispatch(
|
||||
doClaimRewardType(REWARD_TYPES.TYPE_CONFIRM_EMAIL, {
|
||||
|
|
|
@ -34,7 +34,6 @@ type Props = {
|
|||
claimingReward: boolean,
|
||||
claimConfirmEmailReward: () => void,
|
||||
claimNewUserReward: () => void,
|
||||
fetchUser: () => void,
|
||||
claimedRewards: Array<Reward>,
|
||||
youtubeChannels: Array<any>,
|
||||
syncEnabled: boolean,
|
||||
|
@ -60,7 +59,6 @@ function UserSignUp(props: Props) {
|
|||
claimConfirmEmailReward,
|
||||
claimNewUserReward,
|
||||
balance,
|
||||
fetchUser,
|
||||
youtubeChannels,
|
||||
syncEnabled,
|
||||
syncingWallet,
|
||||
|
@ -132,10 +130,6 @@ function UserSignUp(props: Props) {
|
|||
setClientSetting(setting, value, true);
|
||||
}
|
||||
|
||||
React.useEffect(() => {
|
||||
fetchUser();
|
||||
}, [fetchUser]);
|
||||
|
||||
React.useEffect(() => {
|
||||
if (previousHasVerifiedEmail === false && hasVerifiedEmail && prefsReady) {
|
||||
setSettingAndSync(SETTINGS.FIRST_RUN_STARTED, true);
|
||||
|
|
Loading…
Reference in a new issue