From 56a18568a4021d174c43ae6e89cfdc27d04a98a4 Mon Sep 17 00:00:00 2001 From: Abram Date: Mon, 18 Dec 2023 12:46:12 +0100 Subject: [PATCH] Update - allow optional use of setting id --- 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 045efe46d9..99fee441d6 100644 --- a/agenta-web/src/hooks/usePostHogAg.ts +++ b/agenta-web/src/hooks/usePostHogAg.ts @@ -18,7 +18,7 @@ export const usePostHogAg = () => { const identify: typeof posthog.identify = (id, ...args) => { if (trackingEnabled && user?.id) { - posthog.identify(_id !== undefined ? _id : null, ...args) + posthog.identify(_id !== undefined ? _id : id, ...args) } }