reward/new => reward/claim

This commit is contained in:
Sean Yesmunt 2020-01-03 14:20:14 -05:00
parent 053ca52f4f
commit 4cb26d8184
4 changed files with 4 additions and 3 deletions

View file

@ -23,6 +23,7 @@
},
"rules": {
"consistent-return": 0,
"import/extensions": 0,
"import/no-commonjs": "warn",
"import/no-amd": "warn",
"import/prefer-default-export": "ignore",

2
dist/bundle.es.js vendored
View file

@ -497,7 +497,7 @@ rewards.claimReward = (type, rewardParams) => {
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 action = lbryRedux.doToast({

2
dist/bundle.js vendored
View file

@ -1267,7 +1267,7 @@ rewards.claimReward = function (type, rewardParams) {
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 action = Object(lbry_redux__WEBPACK_IMPORTED_MODULE_0__["doToast"])({

View file

@ -23,7 +23,7 @@ rewards.claimReward = (type, rewardParams) => {
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.`;