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;