propagate sync password error
This commit is contained in:
parent
9440717a00
commit
4834749423
3 changed files with 4 additions and 3 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -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
2
dist/bundle.js
vendored
|
@ -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: {
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
Loading…
Reference in a new issue