Skip to content

Commit

Permalink
fix: Only track fetch details event if tx details are fetched
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Oct 9, 2023
1 parent 011a0c6 commit dc30308
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/transactions/TxDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ const TxDetails = ({

const [txDetailsData, error, loading] = useAsync<TransactionDetails>(
async () => {
trackEvent(TX_LIST_EVENTS.FETCH_DETAILS)
if (!txDetails) {
trackEvent(TX_LIST_EVENTS.FETCH_DETAILS)
}

return txDetails || getTransactionDetails(chainId, txSummary.id)
},
Expand Down

0 comments on commit dc30308

Please sign in to comment.