Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
wrap about actions in setImmediate
Browse files Browse the repository at this point in the history
  • Loading branch information
jkup committed Oct 11, 2016
1 parent 4124965 commit 7fb5ca0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/ledger.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ var backupKeys = (appState, action) => {
var recoverKeys = (appState, action) => {
client.recoverWallet(action.firstRecoveryKey, action.secondRecoveryKey, (err, body) => {
if (err) {
appActions.ledgerRecoveryFailed()
setImmediate(() => appActions.ledgerRecoveryFailed())
} else {
appActions.ledgerRecoverySucceeded()
setImmediate(() => appActions.ledgerRecoverySucceeded())
}
})

Expand Down
4 changes: 2 additions & 2 deletions js/stores/appStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -588,10 +588,10 @@ const handleAppAction = (action) => {
appState = appState.setIn(['dictionary', 'locale'], action.locale)
break
case AppConstants.APP_BACKUP_KEYS:
ledger.backupKeys(appState, action)
appState = ledger.backupKeys(appState, action)
break
case AppConstants.APP_RECOVER_WALLET:
ledger.recoverKeys(appState, action)
appState = ledger.recoverKeys(appState, action)
break
case AppConstants.APP_LEDGER_RECOVERY_SUCCEEDED:
appState = appState.setIn(['ui', 'about', 'preferences', 'recoverySucceeded'], true)
Expand Down

0 comments on commit 7fb5ca0

Please sign in to comment.