feat: check daily view reward when claiming

This commit is contained in:
Thomas Zarebczan 2019-09-04 17:12:37 -04:00
parent 2df8868fcf
commit 5cd0fdff9b
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 }));
});
}