diff --git a/packages/core/src/hub.ts b/packages/core/src/hub.ts index f67ae3773325..6f109dfe1ce4 100644 --- a/packages/core/src/hub.ts +++ b/packages/core/src/hub.ts @@ -446,13 +446,10 @@ export class Hub implements HubInterface { */ private _sendSessionUpdate(): void { const { scope, client } = this.getStackTop(); - if (!scope) return; const session = scope.getSession(); - if (session) { - if (client && client.captureSession) { - client.captureSession(session); - } + if (session && client && client.captureSession) { + client.captureSession(session); } }