From 2b968526c8fb5da7abbdee3665c2b1e83124938f Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 21 Oct 2019 12:35:52 -0400 Subject: [PATCH] remove console logs --- dist/bundle.es.js | 14 +++++--------- dist/bundle.js | 4 +--- src/redux/actions/sync.js | 3 +-- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 421620f..e0eabbc 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -2472,9 +2472,7 @@ function doGetSync(passedPassword, callback) { data }); handleCallback(); - }).catch(err => { - console.log('error', err); - + }).catch(() => { if (data.hasSyncedWallet) { const error = 'Error getting synced wallet'; dispatch({ @@ -2582,12 +2580,10 @@ function doResetSync() { } function doSyncEncryptAndDecrypt(oldPassword, newPassword, encrypt) { return dispatch => { - let data = {}; - return lbryRedux.Lbry.sync_hash().then(hash => { - return Lbryio.call('sync', 'get', { - hash - }, 'post'); - }).then(syncGetResponse => { + const data = {}; + return lbryRedux.Lbry.sync_hash().then(hash => Lbryio.call('sync', 'get', { + hash + }, 'post')).then(syncGetResponse => { data.oldHash = syncGetResponse.hash; return lbryRedux.Lbry.sync_apply({ password: oldPassword, diff --git a/dist/bundle.js b/dist/bundle.js index b66e5c4..02d57d7 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -4042,9 +4042,7 @@ function doGetSync(passedPassword, callback) { data: data }); handleCallback(); - })["catch"](function (err) { - console.log('error', err); - + })["catch"](function () { if (data.hasSyncedWallet) { var error = 'Error getting synced wallet'; dispatch({ diff --git a/src/redux/actions/sync.js b/src/redux/actions/sync.js index 56f67df..95dfd44 100644 --- a/src/redux/actions/sync.js +++ b/src/redux/actions/sync.js @@ -132,8 +132,7 @@ export function doGetSync(passedPassword, callback) { dispatch({ type: ACTIONS.GET_SYNC_COMPLETED, data }); handleCallback(); }) - .catch(err => { - console.log('error', err); + .catch(() => { if (data.hasSyncedWallet) { const error = 'Error getting synced wallet'; dispatch({