From dc303081d627fe12b3a271a3239683be1f7ed073 Mon Sep 17 00:00:00 2001 From: Usame Algan Date: Mon, 9 Oct 2023 08:54:16 +0200 Subject: [PATCH] fix: Only track fetch details event if tx details are fetched --- src/components/transactions/TxDetails/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/transactions/TxDetails/index.tsx b/src/components/transactions/TxDetails/index.tsx index 97008f38f8..9b81c3c017 100644 --- a/src/components/transactions/TxDetails/index.tsx +++ b/src/components/transactions/TxDetails/index.tsx @@ -126,7 +126,9 @@ const TxDetails = ({ const [txDetailsData, error, loading] = useAsync( async () => { - trackEvent(TX_LIST_EVENTS.FETCH_DETAILS) + if (!txDetails) { + trackEvent(TX_LIST_EVENTS.FETCH_DETAILS) + } return txDetails || getTransactionDetails(chainId, txSummary.id) },