Skip to content

Commit 7911475

Browse files
authored
Merge pull request #12658 from Dharmik79/bug-wallet-click-unintended-behaviour
Fix the unintended behaviour of clicking visit website on find wallet #12644
2 parents 89279f9 + 0402af1 commit 7911475

File tree

1 file changed

+8
-1
lines changed
  • src/components/FindWallet/WalletTable

1 file changed

+8
-1
lines changed

src/components/FindWallet/WalletTable/index.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,14 @@ const WalletTable = ({
348348
onKeyUp={(e) => {
349349
if (e.key === "Enter") showMoreInfo(wallet)
350350
}}
351-
onClick={() => showMoreInfo(wallet)}
351+
onClick={(e) => {
352+
// Prevent expanding the wallet more info section when clicking on the "Visit website" button
353+
if (
354+
(e.target as HTMLElement).matches("a, a svg")
355+
)
356+
return
357+
showMoreInfo(wallet)
358+
}}
352359
>
353360
<Td lineHeight="revert">
354361
<Flex

0 commit comments

Comments
 (0)