From d7f66fc8d62d32c6ac71fe74a418ad308bba10bc Mon Sep 17 00:00:00 2001 From: William Chong Date: Sat, 14 Sep 2024 00:33:29 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20installed=20wallet=20displ?= =?UTF-8?q?ay=20logic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/connection-method-selection-dialog.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/connection-method-selection-dialog.tsx b/src/components/connection-method-selection-dialog.tsx index 84eef1a..7a7dd20 100644 --- a/src/components/connection-method-selection-dialog.tsx +++ b/src/components/connection-method-selection-dialog.tsx @@ -20,7 +20,7 @@ const connectionMethodMap = [ type: LikeCoinWalletConnectorMethodType.LikerId, name: 'Email/Social', tier: 1, - isInstalled: false, + isInstalled: true, isMobileOk: true, url: 'https://like.co/in', description: 'connect_wallet_method_description_authcore', @@ -189,12 +189,12 @@ export const ConnectionMethodSelectionDialog: FC { - if (!hasShownInstalledWallet) { + // Show email + 1 installed wallet method + if (hasShownInstalledWalletCount < 2) { if (method.isInstalled) { - // Show only one installed wallet method - hasShownInstalledWallet = true; + hasShownInstalledWalletCount += 1; return 1; } return 2;