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

Commit

Permalink
fix 'Create Wallet' flicker
Browse files Browse the repository at this point in the history
as reported in #3376
  • Loading branch information
mrose17 committed Aug 25, 2016
1 parent 5e0b679 commit b409346
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/ledger.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ var boot = () => {

if (err.code !== 'ENOENT') console.log('statePath read error: ' + err.toString())

ledgerInfo.creating = true
appActions.updateLedgerInfo({ creating: true })
try {
client = (require('ledger-client'))(null, underscore.extend({ roundtrip: roundtrip }, clientOptions), null)
Expand Down Expand Up @@ -911,9 +912,8 @@ var getStateInfo = (state) => {
var info = state.paymentInfo
var then = underscore.now() - msecs.year

ledgerInfo.creating = ledgerInfo.created = false
if (state.properties.wallet) ledgerInfo.created = true
else if (state.persona) ledgerInfo.creating = true
ledgerInfo.created = !!state.properties.wallet
ledgerInfo.creating = !ledgerInfo.created

ledgerInfo.delayStamp = state.delayStamp
ledgerInfo.reconcileStamp = state.reconcileStamp
Expand Down

0 comments on commit b409346

Please sign in to comment.