Skip to content

Commit a9067a0

Browse files
Apply suggestion from @lucas-zimerman
1 parent 78b5842 commit a9067a0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/core/src/js/replay/mobilereplay.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,9 @@ export const mobileReplayIntegration = (initOptions: MobileReplayOptions = defau
308308
const clientOptions = client.getOptions();
309309
const originalBeforeSend = clientOptions.beforeSend;
310310
clientOptions.beforeSend = async (event: ErrorEvent, hint: EventHint): Promise<ErrorEvent | null> => {
311+
var result = event;
311312
if (originalBeforeSend) {
312-
const result = await originalBeforeSend(event, hint);
313+
result = await originalBeforeSend(event, hint);
313314
if (result === null) {
314315
// Event was dropped by user's beforeSend, don't capture replay
315316
return null;

0 commit comments

Comments
 (0)