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
Browse files Browse the repository at this point in the history
  • Loading branch information
hakim-adamik authored and valpinkman committed Apr 22, 2022
1 parent 710f12f commit fbdb874
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 fbdb874

Please sign in to comment.