Skip to content

Commit

Permalink
fix: broken state internal hang
Browse files Browse the repository at this point in the history
  • Loading branch information
isordo committed Oct 3, 2023
1 parent 10d0600 commit 14a00a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beacon-dapp/src/dapp-client/DAppClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ export class DAppClient extends Client {
* @param account The account that will be set as the active account
*/
public async setActiveAccount(account?: AccountInfo): Promise<void> {
if (account && (await this.isInvalidState(account))) {
if (account && this._activeAccount.isSettled() && (await this.isInvalidState(account))) {
setTimeout(() => this.events.emit(BeaconEvent.HIDE_UI), 1000)
this.destroy()
this.setActiveAccount(undefined)
Expand Down

0 comments on commit 14a00a3

Please sign in to comment.