From 5c19e56aa8524ba59f1bc22c6a578282bd14c720 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Wed, 17 Apr 2019 15:35:50 +0100 Subject: [PATCH] update bundle --- dist/bundle.es.js | 11 ++--------- dist/bundle.js | 11 ++--------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index e164fed..35cc996 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -1979,14 +1979,11 @@ function doSetSync(oldHash, newHash, data) { dispatch({ type: SET_SYNC_STARTED }); - console.log(`/sync/set with old_hash: ${oldHash}, new_hash: ${newHash}, data: ${data}`); Lbryio.call('sync', 'set', { old_hash: oldHash, new_hash: newHash, data }, 'post').then(response => { - console.log(response); - if (!response.success) { return dispatch({ type: SET_SYNC_FAILED, @@ -2003,7 +2000,6 @@ function doSetSync(oldHash, newHash, data) { } }); }).catch(error => { - console.log(error); dispatch({ type: SET_SYNC_FAILED, data: { @@ -2019,11 +2015,9 @@ function doGetSync(password) { type: GET_SYNC_STARTED }); lbryRedux.Lbry.sync_hash().then(hash => { - console.log(`/sync/get with hash: ${hash}, password: ${password}`); Lbryio.call('sync', 'get', { hash }, 'post').then(response => { - console.log(response); const data = { hasWallet: true }; @@ -2049,9 +2043,8 @@ function doGetSync(password) { type: GET_SYNC_COMPLETED, data }); - }).catch(err => { - console.log(err); // user doesn't have a synced wallet - + }).catch(() => { + // user doesn't have a synced wallet dispatch({ type: GET_SYNC_COMPLETED, data: { diff --git a/dist/bundle.js b/dist/bundle.js index 12dd9aa..0b80d80 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -3406,14 +3406,11 @@ function doSetSync(oldHash, newHash, data) { dispatch({ type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["SET_SYNC_STARTED"] }); - console.log("/sync/set with old_hash: ".concat(oldHash, ", new_hash: ").concat(newHash, ", data: ").concat(data)); lbryio__WEBPACK_IMPORTED_MODULE_1__["default"].call('sync', 'set', { old_hash: oldHash, new_hash: newHash, data: data }, 'post').then(function (response) { - console.log(response); - if (!response.success) { return dispatch({ type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["SET_SYNC_FAILED"], @@ -3430,7 +3427,6 @@ function doSetSync(oldHash, newHash, data) { } }); })["catch"](function (error) { - console.log(error); dispatch({ type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["SET_SYNC_FAILED"], data: { @@ -3446,11 +3442,9 @@ function doGetSync(password) { type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["GET_SYNC_STARTED"] }); lbry_redux__WEBPACK_IMPORTED_MODULE_2__["Lbry"].sync_hash().then(function (hash) { - console.log("/sync/get with hash: ".concat(hash, ", password: ").concat(password)); lbryio__WEBPACK_IMPORTED_MODULE_1__["default"].call('sync', 'get', { hash: hash }, 'post').then(function (response) { - console.log(response); var data = { hasWallet: true }; @@ -3476,9 +3470,8 @@ function doGetSync(password) { type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["GET_SYNC_COMPLETED"], data: data }); - })["catch"](function (err) { - console.log(err); // user doesn't have a synced wallet - + })["catch"](function () { + // user doesn't have a synced wallet dispatch({ type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["GET_SYNC_COMPLETED"], data: {