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 data
}); });
handleCallback(); handleCallback();
}).catch(err => { }).catch(() => {
console.log('error', err);
if (data.hasSyncedWallet) { if (data.hasSyncedWallet) {
const error = 'Error getting synced wallet'; const error = 'Error getting synced wallet';
dispatch({ dispatch({
@ -2582,12 +2580,10 @@ function doResetSync() {
} }
function doSyncEncryptAndDecrypt(oldPassword, newPassword, encrypt) { function doSyncEncryptAndDecrypt(oldPassword, newPassword, encrypt) {
return dispatch => { return dispatch => {
let data = {}; const data = {};
return lbryRedux.Lbry.sync_hash().then(hash => { return lbryRedux.Lbry.sync_hash().then(hash => Lbryio.call('sync', 'get', {
return Lbryio.call('sync', 'get', { hash
hash }, 'post')).then(syncGetResponse => {
}, 'post');
}).then(syncGetResponse => {
data.oldHash = syncGetResponse.hash; data.oldHash = syncGetResponse.hash;
return lbryRedux.Lbry.sync_apply({ return lbryRedux.Lbry.sync_apply({
password: oldPassword, password: oldPassword,

4
dist/bundle.js vendored
View file

@ -4042,9 +4042,7 @@ function doGetSync(passedPassword, callback) {
data: data data: data
}); });
handleCallback(); handleCallback();
})["catch"](function (err) { })["catch"](function () {
console.log('error', err);
if (data.hasSyncedWallet) { if (data.hasSyncedWallet) {
var error = 'Error getting synced wallet'; var error = 'Error getting synced wallet';
dispatch({ dispatch({

View file

@ -132,8 +132,7 @@ export function doGetSync(passedPassword, callback) {
dispatch({ type: ACTIONS.GET_SYNC_COMPLETED, data }); dispatch({ type: ACTIONS.GET_SYNC_COMPLETED, data });
handleCallback(); handleCallback();
}) })
.catch(err => { .catch(() => {
console.log('error', err);
if (data.hasSyncedWallet) { if (data.hasSyncedWallet) {
const error = 'Error getting synced wallet'; const error = 'Error getting synced wallet';
dispatch({ dispatch({