diff --git a/src/components/Account/index.tsx b/src/components/Account/index.tsx index 81368ba..edf381b 100644 --- a/src/components/Account/index.tsx +++ b/src/components/Account/index.tsx @@ -16,14 +16,10 @@ export const Account: FC = ({ address, networkName }) => { state: { explorerBaseUrl }, } = useWeb3() - const handleAccountClick = () => { - if (explorerBaseUrl) { - window.open(StringUtils.getAccountUrl(explorerBaseUrl, address), '_blank', 'noopener,noreferrer') - } - } + const url = explorerBaseUrl ? StringUtils.getAccountUrl(explorerBaseUrl, address) : undefined return ( -
+

@@ -31,6 +27,6 @@ export const Account: FC = ({ address, networkName }) => { {networkName}

-
+ ) }