mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-31 06:59:07 +02:00
🐛 Use correct syntax for passing person properties (#1232)
This commit is contained in:
parent
5a785a5317
commit
c524c53cc9
2 changed files with 4 additions and 8 deletions
|
@ -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", {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue