fix typo
This commit is contained in:
parent
31c51b804f
commit
efde3e6914
3 changed files with 4 additions and 3 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -2075,7 +2075,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 || rewardType !== rewards.TYPE_DAILY_VIEW || rewardType !== rewards.TYPE_NEW_ANDROID) {
|
if (rewardType !== rewards.TYPE_REWARD_CODE || rewardType !== rewards.TYPE_CONFIRM_EMAIL || rewardType !== rewards.TYPE_DAILY_VIEW || rewardType !== rewards.TYPE_NEW_ANDROID || rewardType !== rewards.TYPE_PAID_CONTENT) {
|
||||||
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
|
@ -4462,7 +4462,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 || rewardType !== rewards__WEBPACK_IMPORTED_MODULE_5__["default"].TYPE_DAILY_VIEW || rewardType !== rewards__WEBPACK_IMPORTED_MODULE_5__["default"].TYPE_NEW_ANDROID) {
|
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 || rewardType !== rewards__WEBPACK_IMPORTED_MODULE_5__["default"].TYPE_NEW_ANDROID || rewardType !== rewards__WEBPACK_IMPORTED_MODULE_5__["default"].TYPE_PAID_CONTENT) {
|
||||||
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;
|
||||||
|
|
|
@ -42,7 +42,8 @@ export function doClaimRewardType(rewardType, options = {}) {
|
||||||
rewardType !== rewards.TYPE_REWARD_CODE ||
|
rewardType !== rewards.TYPE_REWARD_CODE ||
|
||||||
rewardType !== rewards.TYPE_CONFIRM_EMAIL ||
|
rewardType !== rewards.TYPE_CONFIRM_EMAIL ||
|
||||||
rewardType !== rewards.TYPE_DAILY_VIEW ||
|
rewardType !== rewards.TYPE_DAILY_VIEW ||
|
||||||
rewardType !== rewards.TYPE_NEW_ANDROID
|
rewardType !== rewards.TYPE_NEW_ANDROID ||
|
||||||
|
rewardType !== rewards.TYPE_PAID_CONTENT
|
||||||
) {
|
) {
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue