Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
fix: ignore Cannot redefine property error in sentry (#1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
agualis authored Sep 5, 2024
1 parent 72233d4 commit a7952d2
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 a7952d2

Please sign in to comment.