Disabled dependence on confirm email reward

This commit is contained in:
Liam Cardenas 2017-12-30 12:59:37 -08:00
parent 4a904ef374
commit 410996aa81
3 changed files with 2 additions and 3 deletions

View file

@ -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 }),
}; };
}; };

View file

@ -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 },

View file

@ -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