From fab08cfaf886ab6a2f69f82ed16dc61f277517ad Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Tue, 17 Sep 2024 18:17:43 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F(frontend)=20fix=20posthog?= =?UTF-8?q?=20user's=20ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Quotes were misplaced, leading to the same ID being generated for every user. Fixed the issue, which was a trivial error. --- src/frontend/src/features/auth/api/useUser.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/features/auth/api/useUser.tsx b/src/frontend/src/features/auth/api/useUser.tsx index 0f4bd716..c3b1dac3 100644 --- a/src/frontend/src/features/auth/api/useUser.tsx +++ b/src/frontend/src/features/auth/api/useUser.tsx @@ -19,7 +19,7 @@ export const useUser = () => { useEffect(() => { if (query.data && query.data.id && !posthog._isIdentified()) { - posthog.identify('query.data.id', { email: query.data.email }) + posthog.identify(query.data.id, { email: query.data.email }) } }, [query.data])