Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🔥 Remove redundant events
Luke Vellaadfa37e1d232
diff --git a/apps/web/src/components/discussion/discussion.tsx b/apps/web/src/components/discussion/discussion.tsxindex aa64695a1..88b6fe974 100644--- a/apps/web/src/components/discussion/discussion.tsx+++ b/apps/web/src/components/discussion/discussion.tsx@@ -1,5 +1,4 @@"use client";-import { usePostHog } from "@rallly/posthog/client";import { cn } from "@rallly/ui";import { Badge } from "@rallly/ui/badge";import { Button } from "@rallly/ui/button";@@ -70,8 +69,6 @@ function NewCommentForm({const pollId = poll.id;- const posthog = usePostHog();-const { register, reset, control, handleSubmit, formState } =useForm<CommentForm>({defaultValues: {@@ -81,9 +78,6 @@ function NewCommentForm({});const addComment = trpc.polls.comments.add.useMutation({- onSuccess: () => {- posthog?.capture("created comment");- },onError: (error) => {toast.error(error.message);},@@ -156,7 +150,6 @@ function DiscussionInner() {const pollId = poll.id;const { data: comments } = trpc.polls.comments.list.useQuery({ pollId });- const posthog = usePostHog();const queryClient = trpc.useUtils();@@ -169,9 +162,6 @@ function DiscussionInner() {},);},- onSuccess: () => {- posthog?.capture("deleted comment");- },});const session = useUser();