remove setReferrer Toast
This commit is contained in:
parent
018d149fb4
commit
e7e800b2d2
3 changed files with 5 additions and 16 deletions
3
dist/bundle.es.js
vendored
3
dist/bundle.es.js
vendored
|
@ -1660,9 +1660,6 @@ function doUserSetReferrer(referrer, shouldClaim) {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: USER_SET_REFERRER_SUCCESS
|
type: USER_SET_REFERRER_SUCCESS
|
||||||
});
|
});
|
||||||
dispatch(lbryRedux.doToast({
|
|
||||||
message: __(`Set Referrer to ${referrer}`)
|
|
||||||
}));
|
|
||||||
|
|
||||||
if (shouldClaim) {
|
if (shouldClaim) {
|
||||||
dispatch(doClaimRewardType(rewards.TYPE_REFEREE));
|
dispatch(doClaimRewardType(rewards.TYPE_REFEREE));
|
||||||
|
|
13
dist/bundle.js
vendored
13
dist/bundle.js
vendored
|
@ -5321,9 +5321,6 @@ function doUserSetReferrer(referrer, shouldClaim) {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: constants_action_types__WEBPACK_IMPORTED_MODULE_1__["USER_SET_REFERRER_SUCCESS"]
|
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) {
|
if (shouldClaim) {
|
||||||
dispatch(Object(redux_actions_rewards__WEBPACK_IMPORTED_MODULE_2__["doClaimRewardType"])(rewards__WEBPACK_IMPORTED_MODULE_4__["default"].TYPE_REFEREE));
|
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());
|
dispatch(doUserFetch());
|
||||||
}
|
}
|
||||||
|
|
||||||
_context.next = 29;
|
_context.next = 28;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 26:
|
case 25:
|
||||||
_context.prev = 26;
|
_context.prev = 25;
|
||||||
_context.t1 = _context["catch"](18);
|
_context.t1 = _context["catch"](18);
|
||||||
dispatch({
|
dispatch({
|
||||||
type: constants_action_types__WEBPACK_IMPORTED_MODULE_1__["USER_SET_REFERRER_FAILURE"],
|
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":
|
case "end":
|
||||||
return _context.stop();
|
return _context.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, _callee, null, [[7, 14], [18, 26]]);
|
}, _callee, null, [[7, 14], [18, 25]]);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
return function (_x, _x2) {
|
return function (_x, _x2) {
|
||||||
|
|
|
@ -426,11 +426,6 @@ export function doUserSetReferrer(referrer, shouldClaim) {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: ACTIONS.USER_SET_REFERRER_SUCCESS,
|
type: ACTIONS.USER_SET_REFERRER_SUCCESS,
|
||||||
});
|
});
|
||||||
dispatch(
|
|
||||||
doToast({
|
|
||||||
message: __(`Set Referrer to ${referrer}`),
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
if (shouldClaim) {
|
if (shouldClaim) {
|
||||||
dispatch(doClaimRewardType(rewards.TYPE_REFEREE));
|
dispatch(doClaimRewardType(rewards.TYPE_REFEREE));
|
||||||
dispatch(doUserFetch());
|
dispatch(doUserFetch());
|
||||||
|
|
Loading…
Reference in a new issue