fix: remove sentry logging for swap failures (#6765)
This commit is contained in:
parent
3db9e1b9a4
commit
5826ed15c8
@ -1,5 +1,4 @@
|
||||
import { Trans } from '@lingui/macro'
|
||||
import * as Sentry from '@sentry/react'
|
||||
import { sendAnalyticsEvent, Trace, TraceEvent, useTrace } from '@uniswap/analytics'
|
||||
import {
|
||||
BrowserEvent,
|
||||
@ -439,12 +438,6 @@ export function Swap({
|
||||
})
|
||||
})
|
||||
.catch((error) => {
|
||||
if (!didUserReject(error)) {
|
||||
Sentry.withScope((scope) => {
|
||||
scope.setExtra('confirmedTrade', tradeToConfirm)
|
||||
Sentry.captureException(error)
|
||||
})
|
||||
}
|
||||
setSwapState((currentState) => ({
|
||||
...currentState,
|
||||
swapError: error,
|
||||
@ -459,7 +452,6 @@ export function Swap({
|
||||
account,
|
||||
trade?.inputAmount?.currency?.symbol,
|
||||
trade?.outputAmount?.currency?.symbol,
|
||||
tradeToConfirm,
|
||||
])
|
||||
|
||||
// errors
|
||||
|
Loading…
Reference in New Issue
Block a user