Skip to content

Commit

Permalink
Remove deinit analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonh committed Oct 31, 2024
1 parent d24059d commit e53a3ad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/web/lib/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,3 @@ export const setupAnalytics = (user?: UserBasicData): void => {
window.Intercom('update', userInfo(user))
}
}

export const deinitAnalytics = (): void => {}
2 changes: 0 additions & 2 deletions packages/web/lib/logout.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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')
Expand Down

0 comments on commit e53a3ad

Please sign in to comment.