Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
📈 Stop duplicate capture of login event
Luke Vella317244ef284d
diff --git a/apps/web/src/app/[locale]/(auth)/login/login-form.tsx b/apps/web/src/app/[locale]/(auth)/login/login-form.tsxindex d3d2dffa4..834044f29 100644--- a/apps/web/src/app/[locale]/(auth)/login/login-form.tsx+++ b/apps/web/src/app/[locale]/(auth)/login/login-form.tsx@@ -116,9 +116,6 @@ export function LoginForm() {name: s.user.name,});}- posthog?.capture("login", {- method: "verification-code",- });router.push(callbackUrl);}}}diff --git a/apps/web/src/app/[locale]/auth/login/login-page.tsx b/apps/web/src/app/[locale]/auth/login/login-page.tsxindex a1052b693..db33f7161 100644--- a/apps/web/src/app/[locale]/auth/login/login-page.tsx+++ b/apps/web/src/app/[locale]/auth/login/login-page.tsx@@ -33,10 +33,6 @@ export const LoginPage = ({ magicLink, email }: PageProps) => {name: updatedSession.user.name,});- posthog?.capture("login", {- method: "magic-link",- });-await trpcUtils.invalidate();}}