Disabled dependence on confirm email reward
This commit is contained in:
parent
4a904ef374
commit
410996aa81
3 changed files with 2 additions and 3 deletions
|
@ -9,7 +9,7 @@ const select = (state, props) => {
|
||||||
const selectReward = makeSelectRewardByType();
|
const selectReward = makeSelectRewardByType();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
reward: selectReward(state, { reward_type: rewards.TYPE_CONFIRM_EMAIL }),
|
reward: selectReward(state, { reward_type: rewards.TYPE_NEW_USER }),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ export function doClaimRewardType(rewardType) {
|
||||||
reward: successReward,
|
reward: successReward,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (successReward.reward_type === rewards.TYPE_CONFIRM_EMAIL) {
|
if (successReward.reward_type === rewards.TYPE_NEW_USER) {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: ACTIONS.OPEN_MODAL,
|
type: ACTIONS.OPEN_MODAL,
|
||||||
data: { modal: MODALS.FIRST_REWARD },
|
data: { modal: MODALS.FIRST_REWARD },
|
||||||
|
|
|
@ -149,7 +149,6 @@ export function doUserEmailVerify(verificationToken, recaptcha) {
|
||||||
type: ACTIONS.USER_EMAIL_VERIFY_SUCCESS,
|
type: ACTIONS.USER_EMAIL_VERIFY_SUCCESS,
|
||||||
data: { email },
|
data: { email },
|
||||||
});
|
});
|
||||||
dispatch(doClaimRewardType(rewards.TYPE_CONFIRM_EMAIL));
|
|
||||||
dispatch(doUserFetch());
|
dispatch(doUserFetch());
|
||||||
} else {
|
} else {
|
||||||
throw new Error('Your email is still not verified.'); // shouldn't happen
|
throw new Error('Your email is still not verified.'); // shouldn't happen
|
||||||
|
|
Loading…
Reference in a new issue