Skip to content

Commit

Permalink
Fix missing guest user alert
Browse files Browse the repository at this point in the history
  • Loading branch information
lukevella committed Dec 19, 2024
1 parent ef5425f commit 1b46326
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions apps/web/src/app/[locale]/poll/[urlId]/guest-poll-alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1b46326

Please sign in to comment.