We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0ca4e9 commit 970d100Copy full SHA for 970d100
packages/no-modal/src/noModal.ts
@@ -437,6 +437,7 @@ export class Web3AuthNoModal extends SafeEventEmitter<Web3AuthNoModalEvents> imp
437
438
async logout(options: { cleanup: boolean } = { cleanup: false }): Promise<void> {
439
if (!CONNECTED_STATUSES.includes(this.status) || !this.connectedConnector) throw WalletLoginError.notConnectedError(`No wallet is connected`);
440
+ if (this.connectedConnector.status === CONNECTOR_STATUS.DISCONNECTING) return;
441
await this.connectedConnector.disconnect(options);
442
}
443
0 commit comments