propagate sync password error

This commit is contained in:
jessop 2020-09-18 13:09:50 -04:00
parent 9440717a00
commit 4834749423
3 changed files with 4 additions and 3 deletions

2
dist/bundle.es.js vendored
View file

@ -954,7 +954,7 @@ function doGetSync(passedPassword, callback) {
handleCallback(syncAttemptError); handleCallback(syncAttemptError);
} else if (data.hasSyncedWallet) { } else if (data.hasSyncedWallet) {
const error = 'Error getting synced wallet'; const error = syncAttemptError && syncAttemptError.message || 'Error getting synced wallet';
dispatch({ dispatch({
type: GET_SYNC_FAILED, type: GET_SYNC_FAILED,
data: { data: {

2
dist/bundle.js vendored
View file

@ -3695,7 +3695,7 @@ function doGetSync(passedPassword, callback) {
handleCallback(syncAttemptError); handleCallback(syncAttemptError);
} else if (data.hasSyncedWallet) { } else if (data.hasSyncedWallet) {
var error = 'Error getting synced wallet'; var error = syncAttemptError && syncAttemptError.message || 'Error getting synced wallet';
dispatch({ dispatch({
type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["GET_SYNC_FAILED"], type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["GET_SYNC_FAILED"],
data: { data: {

View file

@ -152,7 +152,8 @@ export function doGetSync(passedPassword, callback) {
handleCallback(syncAttemptError); handleCallback(syncAttemptError);
} else if (data.hasSyncedWallet) { } else if (data.hasSyncedWallet) {
const error = 'Error getting synced wallet'; const error =
(syncAttemptError && syncAttemptError.message) || 'Error getting synced wallet';
dispatch({ dispatch({
type: ACTIONS.GET_SYNC_FAILED, type: ACTIONS.GET_SYNC_FAILED,
data: { data: {