reward/new => reward/claim
This commit is contained in:
parent
053ca52f4f
commit
4cb26d8184
4 changed files with 4 additions and 3 deletions
|
@ -23,6 +23,7 @@
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"consistent-return": 0,
|
"consistent-return": 0,
|
||||||
|
"import/extensions": 0,
|
||||||
"import/no-commonjs": "warn",
|
"import/no-commonjs": "warn",
|
||||||
"import/no-amd": "warn",
|
"import/no-amd": "warn",
|
||||||
"import/prefer-default-export": "ignore",
|
"import/prefer-default-export": "ignore",
|
||||||
|
|
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -497,7 +497,7 @@ rewards.claimReward = (type, rewardParams) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Lbryio.call('reward', 'new', params, 'post').then(reward => {
|
Lbryio.call('reward', 'claim', params, 'post').then(reward => {
|
||||||
const message = reward.reward_notification || `You have claimed a ${reward.reward_amount} LBC reward.`; // Display global notice
|
const message = reward.reward_notification || `You have claimed a ${reward.reward_amount} LBC reward.`; // Display global notice
|
||||||
|
|
||||||
const action = lbryRedux.doToast({
|
const action = lbryRedux.doToast({
|
||||||
|
|
2
dist/bundle.js
vendored
2
dist/bundle.js
vendored
|
@ -1267,7 +1267,7 @@ rewards.claimReward = function (type, rewardParams) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
lbryio__WEBPACK_IMPORTED_MODULE_1__["default"].call('reward', 'new', params, 'post').then(function (reward) {
|
lbryio__WEBPACK_IMPORTED_MODULE_1__["default"].call('reward', 'claim', params, 'post').then(function (reward) {
|
||||||
var message = reward.reward_notification || "You have claimed a ".concat(reward.reward_amount, " LBC reward."); // Display global notice
|
var message = reward.reward_notification || "You have claimed a ".concat(reward.reward_amount, " LBC reward."); // Display global notice
|
||||||
|
|
||||||
var action = Object(lbry_redux__WEBPACK_IMPORTED_MODULE_0__["doToast"])({
|
var action = Object(lbry_redux__WEBPACK_IMPORTED_MODULE_0__["doToast"])({
|
||||||
|
|
|
@ -23,7 +23,7 @@ rewards.claimReward = (type, rewardParams) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Lbryio.call('reward', 'new', params, 'post').then(reward => {
|
Lbryio.call('reward', 'claim', params, 'post').then(reward => {
|
||||||
const message =
|
const message =
|
||||||
reward.reward_notification || `You have claimed a ${reward.reward_amount} LBC reward.`;
|
reward.reward_notification || `You have claimed a ${reward.reward_amount} LBC reward.`;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue