diff --git a/.eslintrc.json b/.eslintrc.json index 6791352..8c69ad2 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -23,6 +23,7 @@ }, "rules": { "consistent-return": 0, + "import/extensions": 0, "import/no-commonjs": "warn", "import/no-amd": "warn", "import/prefer-default-export": "ignore", diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 1ec1ea9..5b2eb9b 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -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({ diff --git a/dist/bundle.js b/dist/bundle.js index 6fb607f..819988b 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -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"])({ diff --git a/src/rewards.js b/src/rewards.js index 733554a..3da7418 100644 --- a/src/rewards.js +++ b/src/rewards.js @@ -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.`;