From 410996aa818661f940a011f23fcefb29da3e6b69 Mon Sep 17 00:00:00 2001 From: Liam Cardenas Date: Sat, 30 Dec 2017 12:59:37 -0800 Subject: [PATCH] Disabled dependence on confirm email reward --- src/renderer/modal/modalFirstReward/index.js | 2 +- src/renderer/redux/actions/rewards.js | 2 +- src/renderer/redux/actions/user.js | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/renderer/modal/modalFirstReward/index.js b/src/renderer/modal/modalFirstReward/index.js index eb9f65297..77d8ac376 100644 --- a/src/renderer/modal/modalFirstReward/index.js +++ b/src/renderer/modal/modalFirstReward/index.js @@ -9,7 +9,7 @@ const select = (state, props) => { const selectReward = makeSelectRewardByType(); return { - reward: selectReward(state, { reward_type: rewards.TYPE_CONFIRM_EMAIL }), + reward: selectReward(state, { reward_type: rewards.TYPE_NEW_USER }), }; }; diff --git a/src/renderer/redux/actions/rewards.js b/src/renderer/redux/actions/rewards.js index 4c4a278cd..456577e0a 100644 --- a/src/renderer/redux/actions/rewards.js +++ b/src/renderer/redux/actions/rewards.js @@ -60,7 +60,7 @@ export function doClaimRewardType(rewardType) { reward: successReward, }, }); - if (successReward.reward_type === rewards.TYPE_CONFIRM_EMAIL) { + if (successReward.reward_type === rewards.TYPE_NEW_USER) { dispatch({ type: ACTIONS.OPEN_MODAL, data: { modal: MODALS.FIRST_REWARD }, diff --git a/src/renderer/redux/actions/user.js b/src/renderer/redux/actions/user.js index 32d9fafc8..faaa4a639 100644 --- a/src/renderer/redux/actions/user.js +++ b/src/renderer/redux/actions/user.js @@ -149,7 +149,6 @@ export function doUserEmailVerify(verificationToken, recaptcha) { type: ACTIONS.USER_EMAIL_VERIFY_SUCCESS, data: { email }, }); - dispatch(doClaimRewardType(rewards.TYPE_CONFIRM_EMAIL)); dispatch(doUserFetch()); } else { throw new Error('Your email is still not verified.'); // shouldn't happen