diff --git a/ui/index.jsx b/ui/index.jsx index f74b4f5ca..2760d6d1e 100644 --- a/ui/index.jsx +++ b/ui/index.jsx @@ -135,8 +135,10 @@ rewards.setCallback('claimFirstRewardSuccess', () => { app.store.dispatch(doOpenModal(MODALS.FIRST_REWARD)); }); -rewards.setCallback('claimRewardSuccess', () => { - app.store.dispatch(doHideModal()); +rewards.setCallback('claimRewardSuccess', reward => { + if (reward && reward.type === rewards.TYPE_REWARD_CODE) { + app.store.dispatch(doHideModal()); + } }); // @if TARGET='app' diff --git a/ui/rewards.js b/ui/rewards.js index 944af8143..95e445ec7 100644 --- a/ui/rewards.js +++ b/ui/rewards.js @@ -38,7 +38,7 @@ rewards.claimReward = (type, rewardParams) => { window.store.dispatch(action); if (rewards.callbacks.claimRewardSuccess) { - rewards.callbacks.claimRewardSuccess(); + rewards.callbacks.claimRewardSuccess(reward); } resolve(reward);