From a7a6e965979f7c46c2511a33cb601172573f3c84 Mon Sep 17 00:00:00 2001 From: zwlucas Date: Tue, 1 Apr 2025 14:30:52 -0300 Subject: removed cpf --- app/obrigado/page.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'app/obrigado') diff --git a/app/obrigado/page.tsx b/app/obrigado/page.tsx index 7234012..7805719 100644 --- a/app/obrigado/page.tsx +++ b/app/obrigado/page.tsx @@ -16,7 +16,6 @@ export default function ObrigadoPage() { const searchParams = useSearchParams(); const rm = searchParams.get("rm") || ""; const name = searchParams.get("nome") || ""; - const cpf = searchParams.get("cpf") || ""; const option = searchParams.get("option") || ""; const [countdown, setCountdown] = useState(5); @@ -28,7 +27,7 @@ export default function ObrigadoPage() { const hasRun = useRef(false); useEffect(() => { - if (!rm || !name || !cpf || !option) { + if (!rm || !name || !option) { window.location.href = "/"; return; } @@ -41,8 +40,7 @@ export default function ObrigadoPage() { { rm, name, - cpf: cpf.replace(/\D/g, ""), - option_voted: option, + option, }, ]); @@ -89,7 +87,7 @@ export default function ObrigadoPage() { }, 1000); return () => clearInterval(timer); - }, [rm, name, cpf, option]); + }, [rm, name, option]); return (
-- cgit v1.2.3