From 41d4b2c7eff58db56e732ca1cb2c82b9fd1ef6aa Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 18 Sep 2024 09:34:29 -0700 Subject: remove expo-sentry (#5405) --- src/lib/analytics/analytics.web.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/analytics/analytics.web.tsx') diff --git a/src/lib/analytics/analytics.web.tsx b/src/lib/analytics/analytics.web.tsx index 72b28f9c0..c7f0ed3b1 100644 --- a/src/lib/analytics/analytics.web.tsx +++ b/src/lib/analytics/analytics.web.tsx @@ -1,11 +1,11 @@ import React from 'react' import {createClient} from '@segment/analytics-react' +import * as Sentry from '@sentry/react-native' import {sha256} from 'js-sha256' -import {Browser} from 'sentry-expo' -import {ScreenPropertiesMap, TrackPropertiesMap} from './types' -import {useSession, SessionAccount} from '#/state/session' import {logger} from '#/logger' +import {SessionAccount, useSession} from '#/state/session' +import {ScreenPropertiesMap, TrackPropertiesMap} from './types' type SegmentClient = ReturnType @@ -70,7 +70,7 @@ export function init(account: SessionAccount | undefined) { if (account.did) { const did_hashed = sha256(account.did) client.identify(did_hashed, {did_hashed}) - Browser.setUser({id: did_hashed}) + Sentry.setUser({id: did_hashed}) logger.debug('Ping w/hash') } else { logger.debug('Ping w/o hash') -- cgit 1.4.1