Skip to content

Commit 85b04bc

Browse files
committed
ref: Fix if
1 parent 4f1b8a3 commit 85b04bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ export class BrowserClient extends BaseClient<BrowserBackend, BrowserOptions> {
8080
this._processEvent(event, hint, scope)
8181
.then(finalEvent => {
8282
// We need to check for finalEvent in case beforeSend returned null
83-
eventId = finalEvent && finalEvent.event_id;
8483
// We do this here to not parse any requests if they are outgoing to Sentry
8584
// We log breadcrumbs if the integration has them enabled
8685
if (finalEvent) {
86+
eventId = finalEvent.event_id;
8787
const integration = this.getIntegration(Breadcrumbs);
8888
if (integration) {
8989
integration.addSentryBreadcrumb(finalEvent);

0 commit comments

Comments
 (0)