those arent real functions anymore

This commit is contained in:
Alex Grintsvayg 2017-06-21 18:27:07 -04:00
parent 9da8a4b8dc
commit a9fe3a0ed2
2 changed files with 2 additions and 2 deletions

View file

@ -77,7 +77,7 @@ export function doClaimReward(reward, saveError = false) {
export function doClaimEligiblePurchaseRewards() {
return function(dispatch, getState) {
if (!lbryio.enabled || !lbryio.getAccessToken()) {
if (!lbryio.enabled) {
return;
}

View file

@ -93,7 +93,7 @@ rewards.TYPE_FEATURED_DOWNLOAD = "featured_download";
rewards.claimReward = function(type) {
function requestReward(resolve, reject, params) {
if (!lbryio.enabled || !lbryio.getAccessToken()) {
if (!lbryio.enabled) {
reject(new Error(__("Rewards are not enabled.")));
return;
}