From c272bce9056e6c5bfd67cde7a0c0e1c9a7016e25 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan <thomas.zarebczan@gmail.com> Date: Fri, 27 Mar 2020 16:47:55 -0400 Subject: [PATCH] fix: --- dist/bundle.es.js | 6 +++++- dist/bundle.js | 6 +++++- src/redux/actions/rewards.js | 4 +++- 3 files changed, 13 insertions(+), 3 deletions(-) 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,