Skip to content

Commit

Permalink
🐛 Fix installed wallet display logic
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Sep 13, 2024
1 parent b0f537e commit d7f66fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/connection-method-selection-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -189,12 +189,12 @@ export const ConnectionMethodSelectionDialog: FC<ConnectionMethodSelectionDialog
}
filteredMethods.push(method);
});
let hasShownInstalledWallet = false;
let hasShownInstalledWalletCount = 0;
const getTier = (method: LikeCoinWalletConnectorMethod) => {
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;
Expand Down

0 comments on commit d7f66fc

Please sign in to comment.