diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 287aaa8..92e2655 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -2501,6 +2501,8 @@ function doGetSync(passedPassword, callback) { }) => { dispatch(doSetSync('', walletHash, syncApplyData, password)); handleCallback(); + }).catch(error => { + handleCallback(error); }); } }); diff --git a/dist/bundle.js b/dist/bundle.js index 209f11e..2f6ea81 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -4067,6 +4067,8 @@ function doGetSync(passedPassword, callback) { syncApplyData = _ref.data; dispatch(doSetSync('', walletHash, syncApplyData, password)); handleCallback(); + })["catch"](function (error) { + handleCallback(error); }); } }); diff --git a/src/redux/actions/sync.js b/src/redux/actions/sync.js index 6bd371e..d8167e4 100644 --- a/src/redux/actions/sync.js +++ b/src/redux/actions/sync.js @@ -151,10 +151,14 @@ export function doGetSync(passedPassword, callback) { // call sync_apply to get data to sync // first time sync. use any string for old hash - Lbry.sync_apply({ password }).then(({ hash: walletHash, data: syncApplyData }) => { - dispatch(doSetSync('', walletHash, syncApplyData, password)); - handleCallback(); - }); + Lbry.sync_apply({ password }) + .then(({ hash: walletHash, data: syncApplyData }) => { + dispatch(doSetSync('', walletHash, syncApplyData, password)); + handleCallback(); + }) + .catch(error => { + handleCallback(error); + }); } }); };