do not set the default account after every sync_apply call
This commit is contained in:
parent
5bffcaf83d
commit
c7b677279a
3 changed files with 4 additions and 22 deletions
10
dist/bundle.es.js
vendored
10
dist/bundle.es.js
vendored
|
@ -2078,10 +2078,7 @@ function doGetSync(password) {
|
|||
if (walletHash !== syncHash) {
|
||||
// different local hash, need to synchronise
|
||||
dispatch(doSetSync(syncHash, walletHash, walletData));
|
||||
} // set the default account
|
||||
|
||||
|
||||
dispatch(doSetDefaultAccount());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -2129,10 +2126,7 @@ function doSyncApply(syncHash, syncData, password) {
|
|||
if (walletHash !== syncHash) {
|
||||
// different local hash, need to synchronise
|
||||
dispatch(doSetSync(syncHash, walletHash, walletData));
|
||||
} // set the default account
|
||||
|
||||
|
||||
dispatch(doSetDefaultAccount());
|
||||
}
|
||||
}).catch(() => {
|
||||
dispatch({
|
||||
type: SYNC_APPLY_FAILED,
|
||||
|
|
10
dist/bundle.js
vendored
10
dist/bundle.js
vendored
|
@ -3518,10 +3518,7 @@ function doGetSync(password) {
|
|||
if (walletHash !== syncHash) {
|
||||
// different local hash, need to synchronise
|
||||
dispatch(doSetSync(syncHash, walletHash, walletData));
|
||||
} // set the default account
|
||||
|
||||
|
||||
dispatch(doSetDefaultAccount());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -3569,10 +3566,7 @@ function doSyncApply(syncHash, syncData, password) {
|
|||
if (walletHash !== syncHash) {
|
||||
// different local hash, need to synchronise
|
||||
dispatch(doSetSync(syncHash, walletHash, walletData));
|
||||
} // set the default account
|
||||
|
||||
|
||||
dispatch(doSetDefaultAccount());
|
||||
}
|
||||
})["catch"](function () {
|
||||
dispatch({
|
||||
type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["SYNC_APPLY_FAILED"],
|
||||
|
|
|
@ -82,9 +82,6 @@ export function doGetSync(password) {
|
|||
// different local hash, need to synchronise
|
||||
dispatch(doSetSync(syncHash, walletHash, walletData));
|
||||
}
|
||||
|
||||
// set the default account
|
||||
dispatch(doSetDefaultAccount());
|
||||
}
|
||||
);
|
||||
}
|
||||
|
@ -124,9 +121,6 @@ export function doSyncApply(syncHash, syncData, password) {
|
|||
// different local hash, need to synchronise
|
||||
dispatch(doSetSync(syncHash, walletHash, walletData));
|
||||
}
|
||||
|
||||
// set the default account
|
||||
dispatch(doSetDefaultAccount());
|
||||
})
|
||||
.catch(() => {
|
||||
dispatch({
|
||||
|
|
Loading…
Add table
Reference in a new issue