📈 Identify users in posthog (#1252)

This commit is contained in:
Luke Vella 2024-08-10 16:33:52 +01:00 committed by GitHub
parent 175e74fe0c
commit c57428df83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,6 @@ export function PostHogProvider(props: PostHogProviderProps) {
usePostHogPageView();
useMount(() => {
if (user.email) {
posthog.identify(user.id, {
email: user.email,
name: user.name,
@ -62,7 +61,6 @@ export function PostHogProvider(props: PostHogProviderProps) {
timeZone: user.timeZone,
locale: i18n.language,
});
}
});
return <Provider client={posthog}>{props.children}</Provider>;