remove setReferrer Toast

This commit is contained in:
jessop 2020-01-10 17:56:47 -05:00
parent 018d149fb4
commit e7e800b2d2
3 changed files with 5 additions and 16 deletions

3
dist/bundle.es.js vendored
View file

@ -1660,9 +1660,6 @@ function doUserSetReferrer(referrer, shouldClaim) {
dispatch({
type: USER_SET_REFERRER_SUCCESS
});
dispatch(lbryRedux.doToast({
message: __(`Set Referrer to ${referrer}`)
}));
if (shouldClaim) {
dispatch(doClaimRewardType(rewards.TYPE_REFEREE));

13
dist/bundle.js vendored
View file

@ -5321,9 +5321,6 @@ function doUserSetReferrer(referrer, shouldClaim) {
dispatch({
type: constants_action_types__WEBPACK_IMPORTED_MODULE_1__["USER_SET_REFERRER_SUCCESS"]
});
dispatch(Object(lbry_redux__WEBPACK_IMPORTED_MODULE_0__["doToast"])({
message: __("Set Referrer to ".concat(referrer))
}));
if (shouldClaim) {
dispatch(Object(redux_actions_rewards__WEBPACK_IMPORTED_MODULE_2__["doClaimRewardType"])(rewards__WEBPACK_IMPORTED_MODULE_4__["default"].TYPE_REFEREE));
@ -5332,11 +5329,11 @@ function doUserSetReferrer(referrer, shouldClaim) {
dispatch(doUserFetch());
}
_context.next = 29;
_context.next = 28;
break;
case 26:
_context.prev = 26;
case 25:
_context.prev = 25;
_context.t1 = _context["catch"](18);
dispatch({
type: constants_action_types__WEBPACK_IMPORTED_MODULE_1__["USER_SET_REFERRER_FAILURE"],
@ -5345,12 +5342,12 @@ function doUserSetReferrer(referrer, shouldClaim) {
}
});
case 29:
case 28:
case "end":
return _context.stop();
}
}
}, _callee, null, [[7, 14], [18, 26]]);
}, _callee, null, [[7, 14], [18, 25]]);
}));
return function (_x, _x2) {

View file

@ -426,11 +426,6 @@ export function doUserSetReferrer(referrer, shouldClaim) {
dispatch({
type: ACTIONS.USER_SET_REFERRER_SUCCESS,
});
dispatch(
doToast({
message: __(`Set Referrer to ${referrer}`),
}),
);
if (shouldClaim) {
dispatch(doClaimRewardType(rewards.TYPE_REFEREE));
dispatch(doUserFetch());