mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-03 02:35:12 +00:00
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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue