From 9c5555d0562888f4f2d90c254d9da7689354e139 Mon Sep 17 00:00:00 2001 From: Ignacio Santise Date: Mon, 8 Apr 2024 14:59:30 -0300 Subject: [PATCH] fix: get isConnected from provider (#2118) --- packages/ethers/src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ethers/src/client.ts b/packages/ethers/src/client.ts index bc62e4625e..86282a0b07 100644 --- a/packages/ethers/src/client.ts +++ b/packages/ethers/src/client.ts @@ -1133,7 +1133,7 @@ export class Web3Modal extends Web3ModalScaffold { super.setLoading(true) const isLoginEmailUsed = this.emailProvider.getLoginEmailUsed() super.setLoading(isLoginEmailUsed) - const isConnected = await this.emailProvider.isConnected() + const { isConnected } = await this.emailProvider.isConnected() if (isConnected) { this.setEmailProvider()