@@ -9,7 +9,6 @@ import { usePostHog } from 'posthog-js/react'
99import { useShortcutStore } from '@/lib/stores/shortcutStore'
1010import { useConnectedStore } from '@/lib/stores/connectedStore'
1111import { useProfile } from '@/api/hooks/useProfile'
12- import { useLicenseWithDevices } from '@/api/hooks/useLicense'
1312import { useWorkerPolling } from '@/hooks/useWorkerPolling'
1413import { useCreateNotification , useGetNotificationBySentId } from '@/api/hooks/useNotifications'
1514import { isFocusScheduleFeatureEnabled } from '@/lib/utils/environment.util'
@@ -24,7 +23,6 @@ export const useInitializeAppState = () => {
2423 const { beginCheckForUpdates } = useUpdate ( )
2524 const { user } = useAuth ( )
2625 const { profile } = useProfile ( )
27- const { data : licenseData } = useLicenseWithDevices ( user ?. id || null )
2826 const { setConnected } = useConnectedStore ( )
2927 const { loadShortcutFromStorage } = useShortcutStore ( )
3028 const { mutate : createNotification } = useCreateNotification ( )
@@ -61,12 +59,11 @@ export const useInitializeAppState = () => {
6159 posthog . identify ( user . id , {
6260 email : user . email ,
6361 created_at : user . created_at ,
64- subscription_status : licenseData ?. license ?. status || 'free' ,
6562 last_check_in : profile . last_check_in ,
6663 full_name : user . user_metadata ?. full_name
6764 } )
6865 }
69- } , [ user , posthog , profile , licenseData ] )
66+ } , [ user , posthog , profile ] )
7067
7168
7269
0 commit comments