From 8711957c824194648ec5e8ac777d8f845085ec17 Mon Sep 17 00:00:00 2001 From: Abram Date: Mon, 18 Dec 2023 11:41:45 +0100 Subject: [PATCH] Update - replace null type to undefined --- agenta-web/src/hooks/usePostHogAg.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {