diff --git a/apps/web/src/app/[locale]/poll/[urlId]/guest-poll-alert.tsx b/apps/web/src/app/[locale]/poll/[urlId]/guest-poll-alert.tsx index 0d6999663ee..702a5b5f397 100644 --- a/apps/web/src/app/[locale]/poll/[urlId]/guest-poll-alert.tsx +++ b/apps/web/src/app/[locale]/poll/[urlId]/guest-poll-alert.tsx @@ -6,16 +6,10 @@ import { Trans } from "next-i18next"; import { LoginLink } from "@/components/login-link"; import { RegisterLink } from "@/components/register-link"; import { useUser } from "@/components/user-provider"; -import { usePoll } from "@/contexts/poll"; export const GuestPollAlert = () => { - const poll = usePoll(); const { user } = useUser(); - if (poll.user) { - return null; - } - if (!user.isGuest) { return null; }