Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
lochie committed Jun 20, 2024
1 parent 611c317 commit 96ceaa8
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions packages/connectkit/src/components/Common/ConnectorList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,21 @@ const ConnectorItem = ({
as={deeplink ? 'a' : undefined}
href={deeplink ? deeplink : undefined}
disabled={context.route !== routes.CONNECTORS}
onClick={() => {
if (deeplink) return;
if (redirectToMoreWallets) {
context.setRoute(routes.MOBILECONNECTORS);
} else {
if (shouldConnectImmediately) {
connect({ connector: wallet?.connector });
}
context.setRoute(routes.CONNECT);
context.setConnector({ id: wallet.id });
}
}}
onClick={
deeplink
? undefined
: () => {
if (redirectToMoreWallets) {
context.setRoute(routes.MOBILECONNECTORS);
} else {
if (shouldConnectImmediately) {
connect({ connector: wallet?.connector });
}
context.setRoute(routes.CONNECT);
context.setConnector({ id: wallet.id });
}
}
}
>
<ConnectorIcon
data-small={wallet.iconShouldShrink}
Expand Down

0 comments on commit 96ceaa8

Please sign in to comment.