Skip to content

Commit

Permalink
👽️ Override mobile check if installed
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Oct 5, 2023
1 parent ed18a09 commit 6d29643
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 @@ -139,11 +139,6 @@ export const ConnectionMethodSelectionDialog: FC<ConnectionMethodSelectionDialog
method = { ...connectionMethodMap[type] };
}

// Hide desktop only method in mobile
if (isMobile && !method.isMobileOk) {
return;
}

if (
type === LikeCoinWalletConnectorMethodType.Keplr &&
keplrInstallURLOverride
Expand All @@ -166,6 +161,11 @@ export const ConnectionMethodSelectionDialog: FC<ConnectionMethodSelectionDialog
method.isInstalled = false;
break;
}

// Hide desktop only method in mobile
if (!method.isInstalled && isMobile && !method.isMobileOk) {
return;
}
filteredMethods.push(method);
});
let hasShownInstalledWallet = !filteredMethods.some(
Expand Down

0 comments on commit 6d29643

Please sign in to comment.