diff --git a/src/components/cards/SwapCard/handlers/handleTransactionError.ts b/src/components/cards/SwapCard/handlers/handleTransactionError.ts index 7b86679a..2dac2ae4 100644 --- a/src/components/cards/SwapCard/handlers/handleTransactionError.ts +++ b/src/components/cards/SwapCard/handlers/handleTransactionError.ts @@ -2,6 +2,8 @@ import { Dispatch } from 'react' import { SwapAction, SwapCardStage } from '../swapReducer/types' import { StandardRoute } from '../../../../types/StandardRoute' import { logTxToDB } from '../../../../utils/logTxToDB' +import { trackEvent } from '../../../../hooks/useTracking' +import { action, category } from '../../../../constants/tracking' export const handleTransactionError = (e: Error, swapDispatch: Dispatch, selectedRoute: StandardRoute) => { swapDispatch({ type: 'UPDATE_LAST_SWAP_STEP' }) @@ -24,4 +26,5 @@ export const handleTransactionError = (e: Error, swapDispatch: Dispatch