From 00a65a4d199b1c07ebc7005e0c56ca2e19a3788b Mon Sep 17 00:00:00 2001 From: bluecco Date: Fri, 29 Dec 2023 12:06:25 +0100 Subject: [PATCH] fix: don't show modal if only one connector is defined --- src/modal/Modal.svelte | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/modal/Modal.svelte b/src/modal/Modal.svelte index c80d88e..c0d562d 100644 --- a/src/modal/Modal.svelte +++ b/src/modal/Modal.svelte @@ -14,9 +14,6 @@ export let theme: "light" | "dark" | null = null let loadingItem: string | false = false - let emailOnly = - modalWallets.length === 1 && - modalWallets[0].id.toLowerCase().includes("webwallet") let starknetMobile = window?.starknet_argentX as StarknetWindowObject & { isInAppBrowser: boolean @@ -59,7 +56,7 @@ return } - if (emailOnly) { + if (modalWallets.length === 1) { try { const [wallet] = modalWallets await wallet.connector?.connect() @@ -71,7 +68,7 @@ }) -{#if !isInAppBrowser && !emailOnly} +{#if !isInAppBrowser && modalWallets.length > 1}