Skip to content

Commit

Permalink
fix(suite): use external link for explorer in TokenRow
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan committed Jan 29, 2025
1 parent 756b265 commit 7c602de
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import {
import {
useDevice,
useDispatch,
useExternalLink,
useLayoutSize,
useSelector,
useTranslation,
Expand Down Expand Up @@ -111,6 +112,7 @@ export const TokenRow = ({
token.contract,
);
const coingeckoId = getCoingeckoId(account.symbol);
const explorerUrl = useExternalLink(getTokenExplorerUrl(network, token));

if (!unusedAddress || !device) return null;

Expand Down Expand Up @@ -337,10 +339,7 @@ export const TokenRow = ({
label: <Translation id="TR_VIEW_IN_EXPLORER" />,
icon: 'arrowUpRight',
onClick: () => {
window.open(
getTokenExplorerUrl(network, token),
'_blank',
);
window.open(explorerUrl, '_blank');
},
},
],
Expand Down

0 comments on commit 7c602de

Please sign in to comment.