fix doSetSync call for a first-time user sync flow

This commit is contained in:
Akinwale Ariwodola 2019-09-25 23:09:04 +01:00
parent d250096a6f
commit 67bb3e215b
3 changed files with 3 additions and 3 deletions

2
dist/bundle.es.js vendored
View file

@ -2304,7 +2304,7 @@ function doGetSync(password) {
}).then(({ }).then(({
hash: walletHash, hash: walletHash,
data data
}) => dispatch(doSetSync(null, walletHash, data))); }) => dispatch(doSetSync('', walletHash, data)));
}); });
}); });
}; };

2
dist/bundle.js vendored
View file

@ -3846,7 +3846,7 @@ function doGetSync(password) {
}).then(function (_ref2) { }).then(function (_ref2) {
var walletHash = _ref2.hash, var walletHash = _ref2.hash,
data = _ref2.data; data = _ref2.data;
return dispatch(doSetSync(null, walletHash, data)); return dispatch(doSetSync('', walletHash, data));
}); });
}); });
}); });

View file

@ -119,7 +119,7 @@ export function doGetSync(password) {
// call sync_apply to get data to sync // call sync_apply to get data to sync
// first time sync. use any string for old hash // first time sync. use any string for old hash
Lbry.sync_apply({ password }).then(({ hash: walletHash, data }) => Lbry.sync_apply({ password }).then(({ hash: walletHash, data }) =>
dispatch(doSetSync(null, walletHash, data)) dispatch(doSetSync('', walletHash, data))
); );
}); });
}); });