Skip to content

Commit 6e4cad8

Browse files
committed
fix issue with app state
1 parent fa37bff commit 6e4cad8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/hooks/useInitializeAppState.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { usePostHog } from 'posthog-js/react'
99
import { useShortcutStore } from '@/lib/stores/shortcutStore'
1010
import { useConnectedStore } from '@/lib/stores/connectedStore'
1111
import { useProfile } from '@/api/hooks/useProfile'
12-
import { useLicenseWithDevices } from '@/api/hooks/useLicense'
1312
import { useWorkerPolling } from '@/hooks/useWorkerPolling'
1413
import { useCreateNotification, useGetNotificationBySentId } from '@/api/hooks/useNotifications'
1514
import { 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

Comments
 (0)