diff --git a/agenta-web/src/hooks/usePostHogAg.ts b/agenta-web/src/hooks/usePostHogAg.ts index 879bda3a20..42afb230aa 100644 --- a/agenta-web/src/hooks/usePostHogAg.ts +++ b/agenta-web/src/hooks/usePostHogAg.ts @@ -8,7 +8,7 @@ export const usePostHogAg = () => { const {user} = useProfileData() const posthog = usePostHog() - const _id: string | null = isDemo() ? user?.email : null + const _id: string | undefined = isDemo() ? user?.email : null const capture: typeof posthog.capture = (...args) => { if (trackingEnabled && user?.id) {