feat: check daily view reward when claiming #54
3 changed files with 7 additions and 3 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -1198,7 +1198,7 @@ function doClaimEligiblePurchaseRewards() {
|
|||
if (unclaimedRewards.find(ur => ur.reward_type === rewards.TYPE_FIRST_STREAM)) {
|
||||
dispatch(doClaimRewardType(rewards.TYPE_FIRST_STREAM));
|
||||
} else {
|
||||
[rewards.TYPE_MANY_DOWNLOADS, rewards.TYPE_FEATURED_DOWNLOAD].forEach(type => {
|
||||
[rewards.TYPE_MANY_DOWNLOADS, rewards.TYPE_FEATURED_DOWNLOAD, rewards.TYPE_DAILY_VIEW].forEach(type => {
|
||||
dispatch(doClaimRewardType(type, {
|
||||
failSilently: true
|
||||
}));
|
||||
|
|
2
dist/bundle.js
vendored
2
dist/bundle.js
vendored
|
@ -1563,7 +1563,7 @@ function doClaimEligiblePurchaseRewards() {
|
|||
})) {
|
||||
dispatch(doClaimRewardType(rewards__WEBPACK_IMPORTED_MODULE_5__["default"].TYPE_FIRST_STREAM));
|
||||
} else {
|
||||
[rewards__WEBPACK_IMPORTED_MODULE_5__["default"].TYPE_MANY_DOWNLOADS, rewards__WEBPACK_IMPORTED_MODULE_5__["default"].TYPE_FEATURED_DOWNLOAD].forEach(function (type) {
|
||||
[rewards__WEBPACK_IMPORTED_MODULE_5__["default"].TYPE_MANY_DOWNLOADS, rewards__WEBPACK_IMPORTED_MODULE_5__["default"].TYPE_FEATURED_DOWNLOAD, rewards__WEBPACK_IMPORTED_MODULE_5__["default"].TYPE_DAILY_VIEW].forEach(function (type) {
|
||||
dispatch(doClaimRewardType(type, {
|
||||
failSilently: true
|
||||
}));
|
||||
|
|
|
@ -111,7 +111,11 @@ export function doClaimEligiblePurchaseRewards() {
|
|||
if (unclaimedRewards.find(ur => ur.reward_type === rewards.TYPE_FIRST_STREAM)) {
|
||||
dispatch(doClaimRewardType(rewards.TYPE_FIRST_STREAM));
|
||||
} else {
|
||||
[rewards.TYPE_MANY_DOWNLOADS, rewards.TYPE_FEATURED_DOWNLOAD].forEach(type => {
|
||||
[
|
||||
rewards.TYPE_MANY_DOWNLOADS,
|
||||
rewards.TYPE_FEATURED_DOWNLOAD,
|
||||
rewards.TYPE_DAILY_VIEW,
|
||||
].forEach(type => {
|
||||
dispatch(doClaimRewardType(type, { failSilently: true }));
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue