implement silent failing on reward claims when user is not reward approved
This commit is contained in:
parent
30e0ff309a
commit
6b375965f9
1 changed files with 7 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue