diff --git a/src/pages/Transaction/index.tsx b/src/pages/Transaction/index.tsx index 22dc51d..a6f46e8 100644 --- a/src/pages/Transaction/index.tsx +++ b/src/pages/Transaction/index.tsx @@ -56,12 +56,7 @@ export const Transaction: FC = () => { init() }, [getTransaction, navigate, txHash]) - const handleNavigateToExplorer = () => { - if (explorerBaseUrl && txHash) { - const txUrl = StringUtils.getTransactionUrl(explorerBaseUrl, txHash) - window.open(txUrl, '_blank', 'noopener,noreferrer') - } - } + const txUrl = explorerBaseUrl && txHash ? StringUtils.getTransactionUrl(explorerBaseUrl, txHash) : undefined const handleNavigateBack = () => { navigate('/wrapper') @@ -92,11 +87,13 @@ export const Transaction: FC = () => { {type === TransactionType.Rose &&  {amount} ROSE} - {explorerBaseUrl && txHash && ( - + {txUrl && ( + + + )}