add DAILY_VIEW award to whitelist
This commit is contained in:
parent
d87e594fe9
commit
e17aa9d1be
3 changed files with 7 additions and 3 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -1398,7 +1398,7 @@ function doClaimRewardType(rewardType, options = {}) {
|
||||||
reward_type: rewards.TYPE_REWARD_CODE
|
reward_type: rewards.TYPE_REWARD_CODE
|
||||||
} : unclaimedRewards.find(ur => ur.reward_type === rewardType); // Try to claim the email reward right away, even if we haven't called reward_list yet
|
} : unclaimedRewards.find(ur => ur.reward_type === rewardType); // Try to claim the email reward right away, even if we haven't called reward_list yet
|
||||||
|
|
||||||
if (rewardType !== rewards.TYPE_REWARD_CODE || rewardType !== rewards.TYPE_CONFIRM_EMAIL) {
|
if (rewardType !== rewards.TYPE_REWARD_CODE || rewardType !== rewards.TYPE_CONFIRM_EMAIL || rewardType !== rewards.TYPE_DAILY_VIEW) {
|
||||||
if (!reward || reward.transaction_id) {
|
if (!reward || reward.transaction_id) {
|
||||||
// already claimed or doesn't exist, do nothing
|
// already claimed or doesn't exist, do nothing
|
||||||
return;
|
return;
|
||||||
|
|
2
dist/bundle.js
vendored
2
dist/bundle.js
vendored
|
@ -2007,7 +2007,7 @@ function doClaimRewardType(rewardType) {
|
||||||
return ur.reward_type === rewardType;
|
return ur.reward_type === rewardType;
|
||||||
}); // Try to claim the email reward right away, even if we haven't called reward_list yet
|
}); // Try to claim the email reward right away, even if we haven't called reward_list yet
|
||||||
|
|
||||||
if (rewardType !== rewards__WEBPACK_IMPORTED_MODULE_5__["default"].TYPE_REWARD_CODE || rewardType !== rewards__WEBPACK_IMPORTED_MODULE_5__["default"].TYPE_CONFIRM_EMAIL) {
|
if (rewardType !== rewards__WEBPACK_IMPORTED_MODULE_5__["default"].TYPE_REWARD_CODE || rewardType !== rewards__WEBPACK_IMPORTED_MODULE_5__["default"].TYPE_CONFIRM_EMAIL || rewardType !== rewards__WEBPACK_IMPORTED_MODULE_5__["default"].TYPE_DAILY_VIEW) {
|
||||||
if (!reward || reward.transaction_id) {
|
if (!reward || reward.transaction_id) {
|
||||||
// already claimed or doesn't exist, do nothing
|
// already claimed or doesn't exist, do nothing
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -38,7 +38,11 @@ export function doClaimRewardType(rewardType, options = {}) {
|
||||||
: unclaimedRewards.find(ur => ur.reward_type === rewardType);
|
: unclaimedRewards.find(ur => ur.reward_type === rewardType);
|
||||||
|
|
||||||
// Try to claim the email reward right away, even if we haven't called reward_list yet
|
// Try to claim the email reward right away, even if we haven't called reward_list yet
|
||||||
if (rewardType !== rewards.TYPE_REWARD_CODE || rewardType !== rewards.TYPE_CONFIRM_EMAIL) {
|
if (
|
||||||
|
rewardType !== rewards.TYPE_REWARD_CODE ||
|
||||||
|
rewardType !== rewards.TYPE_CONFIRM_EMAIL ||
|
||||||
|
rewardType !== rewards.TYPE_DAILY_VIEW
|
||||||
|
) {
|
||||||
if (!reward || reward.transaction_id) {
|
if (!reward || reward.transaction_id) {
|
||||||
// already claimed or doesn't exist, do nothing
|
// already claimed or doesn't exist, do nothing
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue