From dc7b5a34e72b63b039c6bc44543a8938add6b406 Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Tue, 28 Feb 2023 11:57:49 -0600
Subject: Add a temporary lexicon refactor guard (#235)

* Add a temporary lexicon refactor guard

* Fix test

* Fix tsconfig formatting
---
 src/lib/analytics.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/lib/analytics.tsx')

diff --git a/src/lib/analytics.tsx b/src/lib/analytics.tsx
index 091a7a1ea..5358a8682 100644
--- a/src/lib/analytics.tsx
+++ b/src/lib/analytics.tsx
@@ -7,7 +7,7 @@ const segmentClient = createClient({
   writeKey: '8I6DsgfiSLuoONyaunGoiQM7A6y2ybdI',
   trackAppLifecycleEvents: false,
 })
-export const track = segmentClient.track.bind(segmentClient)
+export const track = segmentClient?.track?.bind?.(segmentClient)
 
 export {useAnalytics} from '@segment/analytics-react-native'
 
-- 
cgit 1.4.1

