remove console.log calls
This commit is contained in:
parent
070468e4d9
commit
3587194b39
1 changed files with 1 additions and 7 deletions
|
@ -8,10 +8,8 @@ export function doSetSync(oldHash, newHash, data) {
|
||||||
type: ACTIONS.SET_SYNC_STARTED,
|
type: ACTIONS.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')
|
Lbryio.call('sync', 'set', { old_hash: oldHash, new_hash: newHash, data }, 'post')
|
||||||
.then(response => {
|
.then(response => {
|
||||||
console.log(response);
|
|
||||||
if (!response.success) {
|
if (!response.success) {
|
||||||
return dispatch({
|
return dispatch({
|
||||||
type: ACTIONS.SET_SYNC_FAILED,
|
type: ACTIONS.SET_SYNC_FAILED,
|
||||||
|
@ -25,7 +23,6 @@ export function doSetSync(oldHash, newHash, data) {
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.log(error);
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: ACTIONS.SET_SYNC_FAILED,
|
type: ACTIONS.SET_SYNC_FAILED,
|
||||||
data: { error },
|
data: { error },
|
||||||
|
@ -41,10 +38,8 @@ export function doGetSync(password) {
|
||||||
});
|
});
|
||||||
|
|
||||||
Lbry.sync_hash().then(hash => {
|
Lbry.sync_hash().then(hash => {
|
||||||
console.log(`/sync/get with hash: ${hash}, password: ${password}`);
|
|
||||||
Lbryio.call('sync', 'get', { hash }, 'post')
|
Lbryio.call('sync', 'get', { hash }, 'post')
|
||||||
.then(response => {
|
.then(response => {
|
||||||
console.log(response);
|
|
||||||
const data = { hasWallet: true };
|
const data = { hasWallet: true };
|
||||||
if (response.changed) {
|
if (response.changed) {
|
||||||
const syncHash = response.hash;
|
const syncHash = response.hash;
|
||||||
|
@ -61,8 +56,7 @@ export function doGetSync(password) {
|
||||||
|
|
||||||
dispatch({ type: ACTIONS.GET_SYNC_COMPLETED, data });
|
dispatch({ type: ACTIONS.GET_SYNC_COMPLETED, data });
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(() => {
|
||||||
console.log(err);
|
|
||||||
// user doesn't have a synced wallet
|
// user doesn't have a synced wallet
|
||||||
dispatch({
|
dispatch({
|
||||||
type: ACTIONS.GET_SYNC_COMPLETED,
|
type: ACTIONS.GET_SYNC_COMPLETED,
|
||||||
|
|
Loading…
Reference in a new issue