#ISSUE-2043 Add logic lost in code refactor for silent fail on rewards #9
2 changed files with 315 additions and 921 deletions
1224
dist/bundle.js
vendored
1224
dist/bundle.js
vendored
File diff suppressed because it is too large
Load diff
|
@ -44,11 +44,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