From 0c042376a4b07232f374d8eedc7b6cdf520364d8 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Fri, 27 Mar 2020 21:54:59 -0400 Subject: [PATCH] fix: actually pass claim code (#3909) Required lbryinc changes that I pushed to master. --- package.json | 2 +- ui/component/rewardLink/index.js | 3 ++- yarn.lock | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0910e3f02..38725d9a7 100644 --- a/package.json +++ b/package.json @@ -131,7 +131,7 @@ "json-loader": "^0.5.4", "lbry-format": "https://github.com/lbryio/lbry-format.git", "lbry-redux": "lbryio/lbry-redux#6c0436cf140d2cc839f32ce1a780fc2068d55b85", - "lbryinc": "lbryio/lbryinc#402a9a199f0bcb4cf6bd25a4ee1fb98e30b48187", + "lbryinc": "lbryio/lbryinc#19260fac560daaa4be2d4af372f28109ea96ebf9", "lint-staged": "^7.0.2", "localforage": "^1.7.1", "lodash-es": "^4.17.14", diff --git a/ui/component/rewardLink/index.js b/ui/component/rewardLink/index.js index 2c82ecbf0..d727f3846 100644 --- a/ui/component/rewardLink/index.js +++ b/ui/component/rewardLink/index.js @@ -8,7 +8,8 @@ const select = (state, props) => ({ }); const perform = dispatch => ({ - claimReward: reward => dispatch(doClaimRewardType(reward.reward_type, { notifyError: true })), + claimReward: reward => + dispatch(doClaimRewardType(reward.reward_type, { notifyError: true, params: { claim_code: reward.claim_code } })), }); export default connect(select, perform)(RewardLink); diff --git a/yarn.lock b/yarn.lock index 183f8c762..c3996f5bb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6146,9 +6146,9 @@ lbry-redux@lbryio/lbry-redux#6c0436cf140d2cc839f32ce1a780fc2068d55b85: reselect "^3.0.0" uuid "^3.3.2" -lbryinc@lbryio/lbryinc#402a9a199f0bcb4cf6bd25a4ee1fb98e30b48187: +lbryinc@lbryio/lbryinc#19260fac560daaa4be2d4af372f28109ea96ebf9: version "0.0.1" - resolved "https://codeload.github.com/lbryio/lbryinc/tar.gz/402a9a199f0bcb4cf6bd25a4ee1fb98e30b48187" + resolved "https://codeload.github.com/lbryio/lbryinc/tar.gz/19260fac560daaa4be2d4af372f28109ea96ebf9" dependencies: reselect "^3.0.0"