mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Remove deinit analytics
This commit is contained in:
parent
d24059dc0f
commit
e53a3ad9a3
2 changed files with 0 additions and 4 deletions
|
|
@ -36,5 +36,3 @@ export const setupAnalytics = (user?: UserBasicData): void => {
|
|||
window.Intercom('update', userInfo(user))
|
||||
}
|
||||
}
|
||||
|
||||
export const deinitAnalytics = (): void => {}
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue