implement silent failing on reward claims when user is not reward approved

This commit is contained in:
Travis Eden 2018-08-14 15:42:08 -04:00
parent 30e0ff309a
commit 6b375965f9

View file

@ -40,11 +40,13 @@ export function doClaimRewardType(rewardType, options) {
} }
if (!userIsRewardApproved && rewardType !== rewards.TYPE_CONFIRM_EMAIL) { if (!userIsRewardApproved && rewardType !== rewards.TYPE_CONFIRM_EMAIL) {
const action = doNotify({ if (!options || !options.failSilently) {
id: MODALS.REWARD_APPROVAL_REQUIRED, const action = doNotify({
isError: false, id: MODALS.REWARD_APPROVAL_REQUIRED,
}); isError: false,
dispatch(action); });
dispatch(action);
}
return; return;
} }