diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 55daff2..22cd74d 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -1841,7 +1841,11 @@ function doClaimRewardType(rewardType, options = {}) { const params = options.params || {}; - params.claim_code = reward.claim_code; + + if (!params.claim_code) { + params.claim_code = reward.claim_code; + } + dispatch({ type: lbryRedux.ACTIONS.CLAIM_REWARD_STARTED, data: { diff --git a/dist/bundle.js b/dist/bundle.js index 089c9e4..6254544 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -4426,7 +4426,11 @@ function doClaimRewardType(rewardType) { var params = options.params || {}; - params.claim_code = reward.claim_code; + + if (!params.claim_code) { + params.claim_code = reward.claim_code; + } + dispatch({ type: lbry_redux__WEBPACK_IMPORTED_MODULE_1__["ACTIONS"].CLAIM_REWARD_STARTED, data: { diff --git a/src/redux/actions/rewards.js b/src/redux/actions/rewards.js index e72c9ae..9c8b682 100644 --- a/src/redux/actions/rewards.js +++ b/src/redux/actions/rewards.js @@ -65,7 +65,9 @@ export function doClaimRewardType(rewardType, options = {}) { // Set `claim_code` so the api knows which reward to give if there are multiple of the same type const params = options.params || {}; - params.claim_code = reward.claim_code; + if (!params.claim_code) { + params.claim_code = reward.claim_code; + } dispatch({ type: ACTIONS.CLAIM_REWARD_STARTED,