Changes for invite api #24

Merged
neb-b merged 4 commits from invite into master 2019-02-04 20:27:07 +01:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 375cc397d8 - Show all commits

2
dist/bundle.js vendored
View file

@ -8052,7 +8052,7 @@ function doClaimRewardType(rewardType) {
}); });
if (options.notifyError) { if (options.notifyError) {
dispatch((0, _lbryRedux.doError)(error.message)); dispatch((0, _lbryRedux.doToast)({ message: error.message, isError: true }));
} }
}; };

View file

@ -1,5 +1,5 @@
import Lbryio from 'lbryio'; import Lbryio from 'lbryio';
import { ACTIONS, doError } from 'lbry-redux'; import { ACTIONS, doToast } from 'lbry-redux';
import { selectUnclaimedRewards } from 'redux/selectors/rewards'; import { selectUnclaimedRewards } from 'redux/selectors/rewards';
import { selectUserIsRewardApproved } from 'redux/selectors/user'; import { selectUserIsRewardApproved } from 'redux/selectors/user';
import { doFetchInviteStatus } from 'redux/actions/user'; import { doFetchInviteStatus } from 'redux/actions/user';
@ -90,7 +90,7 @@ export function doClaimRewardType(rewardType, options = {}) {
}); });
if (options.notifyError) { if (options.notifyError) {
dispatch(doError(error.message)); dispatch(doToast({ message: error.message, isError: true }));
} }
}; };