From 67bb3e215be3f13605c5e3f9f2b0e2fb880724cf Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Wed, 25 Sep 2019 23:09:04 +0100 Subject: [PATCH] fix doSetSync call for a first-time user sync flow --- dist/bundle.es.js | 2 +- dist/bundle.js | 2 +- src/redux/actions/sync.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 76d73c3..d8b4ede 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -2304,7 +2304,7 @@ function doGetSync(password) { }).then(({ hash: walletHash, data - }) => dispatch(doSetSync(null, walletHash, data))); + }) => dispatch(doSetSync('', walletHash, data))); }); }); }; diff --git a/dist/bundle.js b/dist/bundle.js index eb3b850..a5a85b8 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -3846,7 +3846,7 @@ function doGetSync(password) { }).then(function (_ref2) { var walletHash = _ref2.hash, data = _ref2.data; - return dispatch(doSetSync(null, walletHash, data)); + return dispatch(doSetSync('', walletHash, data)); }); }); }); diff --git a/src/redux/actions/sync.js b/src/redux/actions/sync.js index 524e9e9..aa92793 100644 --- a/src/redux/actions/sync.js +++ b/src/redux/actions/sync.js @@ -119,7 +119,7 @@ export function doGetSync(password) { // 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 }) => - dispatch(doSetSync(null, walletHash, data)) + dispatch(doSetSync('', walletHash, data)) ); }); });