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