🐛 Use correct syntax for passing person properties (#1232)

This commit is contained in:
Luke Vella 2024-07-31 20:15:38 +01:00 committed by GitHub
parent 5a785a5317
commit c524c53cc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 8 deletions

View file

@ -71,10 +71,8 @@ export const RegisterForm = () => {
queryClient.invalidate();
posthog?.identify(res.user.id, {
$set: {
email: res.user.email,
name: res.user.name,
},
email: res.user.email,
name: res.user.name,
});
signIn("registration-token", {

View file

@ -29,10 +29,8 @@ export const LoginPage = ({ magicLink, email }: PageProps) => {
if (updatedSession) {
// identify the user in posthog
posthog?.identify(updatedSession.user.id, {
$set: {
email: updatedSession.user.email,
name: updatedSession.user.name,
},
email: updatedSession.user.email,
name: updatedSession.user.name,
});
await trpcUtils.invalidate();