feat: check daily view reward when claiming #54

Merged
tzarebczan merged 1 commit from check-daily-view into master 2019-09-04 23:22:28 +02:00
3 changed files with 7 additions and 3 deletions

2
dist/bundle.es.js vendored
View file

@ -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
View file

@ -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
}));

View file

@ -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 }));
});
}