Skip to content

Commit

Permalink
fix: set disableMessages to false after first wallet refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
limpbrains committed Nov 20, 2024
1 parent fa4a9ad commit eb00760
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wallet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ export class Wallet {
if (res.isErr()) return err(res.error.message);
wallet.updateFeeEstimates(true);
wallet.refreshWallet({});
if (wallet._disableMessagesOnCreate) wallet.disableMessages = false;
return ok(wallet);
} catch (e) {
return err(e);
Expand Down Expand Up @@ -380,6 +379,8 @@ export class Wallet {
} else {
return this._handleRefreshError(e);
}
} finally {
if (this._disableMessagesOnCreate) this.disableMessages = false;
}
}

Expand Down

0 comments on commit eb00760

Please sign in to comment.