Skip to content

Commit

Permalink
Merge pull request #1788 from Web3Auth:fix/no-modal-status
Browse files Browse the repository at this point in the history
fixes no modal status
  • Loading branch information
chaitanyapotti authored Apr 16, 2024
2 parents 35bd1c4 + a5c74c9 commit c810f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/no-modal/src/noModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class Web3AuthNoModal extends SafeEventEmitter implements IWeb3Auth {
return this.walletAdapters[adapterName].init({ autoConnect: this.cachedAdapter === adapterName }).catch((e) => log.error(e));
});
await Promise.all(initPromises);
this.status = ADAPTER_STATUS.READY;
if (this.status === ADAPTER_STATUS.NOT_READY) this.status = ADAPTER_STATUS.READY;
}

public getAdapter(adapterName: WALLET_ADAPTER_TYPE): IAdapter<unknown> | null {
Expand Down

0 comments on commit c810f23

Please sign in to comment.