feat: log swap failures to amplitude (#6789)
This commit is contained in:
parent
eb802266e1
commit
6528fd136e
@ -441,6 +441,11 @@ export function Swap({
|
||||
})
|
||||
})
|
||||
.catch((error) => {
|
||||
if (!didUserReject(error)) {
|
||||
sendAnalyticsEvent(SwapEventName.SWAP_ERROR, {
|
||||
confirmedTrade: tradeToConfirm,
|
||||
})
|
||||
}
|
||||
setSwapState((currentState) => ({
|
||||
...currentState,
|
||||
swapError: error,
|
||||
@ -455,6 +460,7 @@ export function Swap({
|
||||
account,
|
||||
trade?.inputAmount?.currency?.symbol,
|
||||
trade?.outputAmount?.currency?.symbol,
|
||||
tradeToConfirm,
|
||||
])
|
||||
|
||||
// errors
|
||||
|
Loading…
Reference in New Issue
Block a user