remove console logs

This commit is contained in:
Sean Yesmunt 2019-10-21 12:35:52 -04:00
parent 6e5729afd2
commit 2b968526c8
3 changed files with 7 additions and 14 deletions

14
dist/bundle.es.js vendored
View file

@ -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,

4
dist/bundle.js vendored
View file

@ -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({

View file

@ -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({