From e7e800b2d2d27ff7fed6d66cba40dd0149fee50c Mon Sep 17 00:00:00 2001 From: jessop Date: Fri, 10 Jan 2020 17:56:47 -0500 Subject: [PATCH] remove setReferrer Toast --- dist/bundle.es.js | 3 --- dist/bundle.js | 13 +++++-------- src/redux/actions/user.js | 5 ----- 3 files changed, 5 insertions(+), 16 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 1d98973..f1e4008 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -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)); diff --git a/dist/bundle.js b/dist/bundle.js index 4374365..1258a58 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -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) { diff --git a/src/redux/actions/user.js b/src/redux/actions/user.js index bd05743..7c7db39 100644 --- a/src/redux/actions/user.js +++ b/src/redux/actions/user.js @@ -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());