Skip to content

Commit

Permalink
fix: ignore Cannot redefine property error in sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
agualis committed Sep 5, 2024
1 parent 72233d4 commit df0e56d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/shared/utils/query-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,14 @@ function shouldIgnore(e: Error): boolean {
return true
}

/*
com.okex.wallet injects code that causes this error
Examples: https://balancer-labs.sentry.io/issues/5687846148/
*/
if (e.message.startsWith('Cannot redefine property:') && e.stack?.includes('inject.bundle.js')) {
return true
}

/*
Wagmi error which does not crash.
Can be reproduced by:
Expand Down

0 comments on commit df0e56d

Please sign in to comment.