Skip to content

Commit

Permalink
fix(bridge-ui): fix issue in beforeSend (#13971)
Browse files Browse the repository at this point in the history
  • Loading branch information
jscriptcoder authored and dantaik committed Jun 12, 2023
1 parent a6b81c1 commit 919214e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/bridge-ui/src/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ export function setupSentry(dsn: string) {

beforeSend(event, hint) {
const processedEvent = { ...event };
const { cause } = hint?.originalException as Error;
const error = hint?.originalException as Error;

// If we have "cause", we want to know about it as additional data
if (cause) {
if (error?.cause) {
processedEvent.extra = {
...processedEvent.extra,
cause,
cause: error.cause,
};
}

Expand Down

0 comments on commit 919214e

Please sign in to comment.