Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🔥 Remove redundant client-side success dialog tracking (#2761)
Luke Vella396063f9616e
diff --git a/apps/web/src/features/poll/components/voting-form.tsx b/apps/web/src/features/poll/components/voting-form.tsxindex 89051bae0..49a0b9d01 100644--- a/apps/web/src/features/poll/components/voting-form.tsx+++ b/apps/web/src/features/poll/components/voting-form.tsx@@ -1,5 +1,4 @@import { zodResolver } from "@hookform/resolvers/zod";-import { posthog } from "@rallly/posthog/client";import { Dialog, DialogContent } from "@rallly/ui/dialog";import React from "react";import { FormProvider, useForm, useFormContext } from "react-hook-form";@@ -72,7 +71,7 @@ export const useVotingForm = () => {};export const VotingForm = ({ children }: React.PropsWithChildren) => {- const { id: pollId, options, spaceId, space } = usePoll();+ const { id: pollId, options } = usePoll();const updateParticipant = useUpdateParticipantMutation();const token = useEditToken();const { participants } = useParticipants();@@ -148,15 +147,6 @@ export const VotingForm = ({ children }: React.PropsWithChildren) => {optionId: option.id,})),});- posthog?.capture("new_participant_dialog:success_view", {- pollId,- spaceId,- tier: space?.tier,- $groups: {- poll: pollId,- ...(spaceId ? { space: spaceId } : {}),- },- });}}onCancel={() => setIsNewParticipantModalOpen(false)}/>