From 4821e2d2c54300645bab576a9af9815853b2759c Mon Sep 17 00:00:00 2001 From: Krystof Woldrich Date: Tue, 28 May 2024 15:38:13 +0200 Subject: [PATCH] fix: e2e tests --- test/e2e/src/EndToEndTests.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/src/EndToEndTests.tsx b/test/e2e/src/EndToEndTests.tsx index 813c71619b..ef348e6d38 100644 --- a/test/e2e/src/EndToEndTests.tsx +++ b/test/e2e/src/EndToEndTests.tsx @@ -18,7 +18,7 @@ const EndToEndTestsScreen = (): JSX.Element => { // !!! WARNING: This is only for testing purposes. // We only do this to render the eventId onto the UI for end to end tests. React.useEffect(() => { - const client: Sentry.ReactNativeClient | undefined = Sentry.getCurrentHub().getClient(); + const client: Sentry.ReactNativeClient | undefined = Sentry.getClient(); client.getOptions().beforeSend = (e: Sentry.Event) => { setEventId(e.event_id || null); return e;