Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
fix account index undefined (#1892)
Browse files Browse the repository at this point in the history
  • Loading branch information
hzheng-ledger authored Apr 14, 2022
1 parent 9c76b5d commit 7ace838
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/families/bitcoin/wallet-btc/storage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,7 @@ class BitcoinLikeStorage implements IStorage {
this.unspentUtxos = data.unspentUtxos;
this.addressCache = data.addressCache;
Base.addressCache = { ...Base.addressCache, ...this.addressCache };
if (
(!this.accountIndex || isEmpty(this.accountIndex)) &&
this.txs.length > 0
) {
if (!this.accountIndex || isEmpty(this.accountIndex)) {
this.accountIndex = {};
this.createAccountIndex();
}
Expand Down

0 comments on commit 7ace838

Please sign in to comment.