diff --git a/src/components/TokenDetail/TokenTableData/TokenTransaction.tsx b/src/components/TokenDetail/TokenTableData/TokenTransaction.tsx index ab3dfd7a2..91700d13c 100644 --- a/src/components/TokenDetail/TokenTableData/TokenTransaction.tsx +++ b/src/components/TokenDetail/TokenTableData/TokenTransaction.tsx @@ -38,6 +38,15 @@ const TokenTransaction: React.FC = ({ tabActive, tokenId }) = blockKey ); const { error } = fetchData; + + const onClickRow = (e: React.MouseEvent, r: Transactions) => { + if (e.target instanceof HTMLAnchorElement || (e.target instanceof Element && e.target.closest("a"))) { + e.preventDefault(); + e.stopPropagation(); + return; + } + history.push(details.transaction(r.hash)); + }; const columns: Column[] = [ { title: t("glossary.txhash"), @@ -142,7 +151,7 @@ const TokenTransaction: React.FC = ({ tabActive, tokenId }) = total: fetchData.total, onChange: (page, size) => history.replace({ search: stringify({ page, size }) }) }} - onClickRow={(_, r: Transactions) => history.push(details.transaction(r.hash))} + onClickRow={onClickRow} /> );