From c57428df83e42fd41f9a9cbaa69e4776ada7dc6c Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Sat, 10 Aug 2024 16:33:52 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=88=20Identify=20users=20in=20posthog?= =?UTF-8?q?=20(#1252)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/contexts/posthog.tsx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/apps/web/src/contexts/posthog.tsx b/apps/web/src/contexts/posthog.tsx index c721d2d5c..f82c0bfe3 100644 --- a/apps/web/src/contexts/posthog.tsx +++ b/apps/web/src/contexts/posthog.tsx @@ -54,15 +54,13 @@ export function PostHogProvider(props: PostHogProviderProps) { usePostHogPageView(); useMount(() => { - if (user.email) { - posthog.identify(user.id, { - email: user.email, - name: user.name, - tier: user.tier, - timeZone: user.timeZone, - locale: i18n.language, - }); - } + posthog.identify(user.id, { + email: user.email, + name: user.name, + tier: user.tier, + timeZone: user.timeZone, + locale: i18n.language, + }); }); return {props.children};