🚑️(frontend) fix posthog user's ID

Quotes were misplaced, leading to the same ID being generated for every user.
Fixed the issue, which was a trivial error.
This commit is contained in:
lebaudantoine
2024-09-17 18:17:43 +02:00
committed by aleb_the_flash
parent 550c48f29e
commit fab08cfaf8

View File

@@ -19,7 +19,7 @@ export const useUser = () => {
useEffect(() => { useEffect(() => {
if (query.data && query.data.id && !posthog._isIdentified()) { 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]) }, [query.data])