From 5cd0fdff9b65f682dd50d54497a57a518376cb75 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Wed, 4 Sep 2019 17:12:37 -0400 Subject: [PATCH] feat: check daily view reward when claiming --- dist/bundle.es.js | 2 +- dist/bundle.js | 2 +- src/redux/actions/rewards.js | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 095f476..1b96a06 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -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 })); diff --git a/dist/bundle.js b/dist/bundle.js index bee49fe..8b20f0b 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -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 })); diff --git a/src/redux/actions/rewards.js b/src/redux/actions/rewards.js index 22eb19e..86ddff1 100644 --- a/src/redux/actions/rewards.js +++ b/src/redux/actions/rewards.js @@ -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 })); }); }