Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
📈 Capture pollId with toggling notifications
Luke Vella1fba36f9c867
diff --git a/apps/web/src/components/poll/notifications-toggle.tsx b/apps/web/src/components/poll/notifications-toggle.tsxindex d2cb1c419..638a0f4d7 100644--- a/apps/web/src/components/poll/notifications-toggle.tsx+++ b/apps/web/src/components/poll/notifications-toggle.tsx@@ -27,13 +27,17 @@ const NotificationsToggle: React.FunctionComponent = () => {const watch = trpc.polls.watch.useMutation({onSuccess: () => {- posthog?.capture("turned notifications on");+ posthog?.capture("turned notifications on", {+ pollId: poll.id,+ });},});const unwatch = trpc.polls.unwatch.useMutation({onSuccess: () => {- posthog?.capture("turned notifications off");+ posthog?.capture("turned notifications off", {+ pollId: poll.id,+ });},});