From e53a3ad9a3a4d1ed54414d3a1249a6d10edda645 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Thu, 31 Oct 2024 12:09:55 +0800 Subject: [PATCH] Remove deinit analytics --- packages/web/lib/analytics.ts | 2 -- packages/web/lib/logout.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/packages/web/lib/analytics.ts b/packages/web/lib/analytics.ts index 1a31268306..a26cb4185a 100644 --- a/packages/web/lib/analytics.ts +++ b/packages/web/lib/analytics.ts @@ -36,5 +36,3 @@ export const setupAnalytics = (user?: UserBasicData): void => { window.Intercom('update', userInfo(user)) } } - -export const deinitAnalytics = (): void => {} diff --git a/packages/web/lib/logout.ts b/packages/web/lib/logout.ts index 058cb6acae..5694a817f1 100644 --- a/packages/web/lib/logout.ts +++ b/packages/web/lib/logout.ts @@ -1,5 +1,4 @@ import { useQueryClient } from '@tanstack/react-query' -import { deinitAnalytics } from './analytics' import { logoutMutation } from './networking/mutations/logoutMutation' import { useCallback } from 'react' import { useRouter } from 'next/router' @@ -14,7 +13,6 @@ export const useLogout = () => { if (!result) { throw new Error('Logout failed') } - deinitAnalytics() queryClient.clear() console.log('cleared the query client') router.push('/login')