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) {
const action = doNotify({
id: MODALS.REWARD_APPROVAL_REQUIRED,
isError: false,
});
dispatch(action);
if (!options || !options.failSilently) {
const action = doNotify({
id: MODALS.REWARD_APPROVAL_REQUIRED,
isError: false,
});
dispatch(action);
}
return;
}