fix: remove sentry logging for swap failures (#6765)

This commit is contained in:
eddie 2023-06-14 11:16:05 -07:00 committed by GitHub
parent 3db9e1b9a4
commit 5826ed15c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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