mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +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();
|
queryClient.invalidate();
|
||||||
|
|
||||||
posthog?.identify(res.user.id, {
|
posthog?.identify(res.user.id, {
|
||||||
$set: {
|
email: res.user.email,
|
||||||
email: res.user.email,
|
name: res.user.name,
|
||||||
name: res.user.name,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
signIn("registration-token", {
|
signIn("registration-token", {
|
||||||
|
|
|
@ -29,10 +29,8 @@ export const LoginPage = ({ magicLink, email }: PageProps) => {
|
||||||
if (updatedSession) {
|
if (updatedSession) {
|
||||||
// identify the user in posthog
|
// identify the user in posthog
|
||||||
posthog?.identify(updatedSession.user.id, {
|
posthog?.identify(updatedSession.user.id, {
|
||||||
$set: {
|
email: updatedSession.user.email,
|
||||||
email: updatedSession.user.email,
|
name: updatedSession.user.name,
|
||||||
name: updatedSession.user.name,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
await trpcUtils.invalidate();
|
await trpcUtils.invalidate();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue