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 committed Jun 12, 2023
1 parent 300be15 commit 08baec0
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 08baec0

Please sign in to comment.