Compare commits
1 commit
master
...
claim-code
Author | SHA1 | Date | |
---|---|---|---|
|
c272bce905 |
3 changed files with 13 additions and 3 deletions
6
dist/bundle.es.js
vendored
6
dist/bundle.es.js
vendored
|
@ -1841,7 +1841,11 @@ function doClaimRewardType(rewardType, options = {}) {
|
||||||
|
|
||||||
|
|
||||||
const params = options.params || {};
|
const params = options.params || {};
|
||||||
params.claim_code = reward.claim_code;
|
|
||||||
|
if (!params.claim_code) {
|
||||||
|
params.claim_code = reward.claim_code;
|
||||||
|
}
|
||||||
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: lbryRedux.ACTIONS.CLAIM_REWARD_STARTED,
|
type: lbryRedux.ACTIONS.CLAIM_REWARD_STARTED,
|
||||||
data: {
|
data: {
|
||||||
|
|
6
dist/bundle.js
vendored
6
dist/bundle.js
vendored
|
@ -4426,7 +4426,11 @@ function doClaimRewardType(rewardType) {
|
||||||
|
|
||||||
|
|
||||||
var params = options.params || {};
|
var params = options.params || {};
|
||||||
params.claim_code = reward.claim_code;
|
|
||||||
|
if (!params.claim_code) {
|
||||||
|
params.claim_code = reward.claim_code;
|
||||||
|
}
|
||||||
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: lbry_redux__WEBPACK_IMPORTED_MODULE_1__["ACTIONS"].CLAIM_REWARD_STARTED,
|
type: lbry_redux__WEBPACK_IMPORTED_MODULE_1__["ACTIONS"].CLAIM_REWARD_STARTED,
|
||||||
data: {
|
data: {
|
||||||
|
|
|
@ -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
|
// Set `claim_code` so the api knows which reward to give if there are multiple of the same type
|
||||||
const params = options.params || {};
|
const params = options.params || {};
|
||||||
params.claim_code = reward.claim_code;
|
if (!params.claim_code) {
|
||||||
|
params.claim_code = reward.claim_code;
|
||||||
|
}
|
||||||
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: ACTIONS.CLAIM_REWARD_STARTED,
|
type: ACTIONS.CLAIM_REWARD_STARTED,
|
||||||
|
|
Loading…
Reference in a new issue