diff options
| author | zwlucas <lucas.oliveira1676@etec.sp.gov.br> | 2025-04-01 17:30:52 +0000 |
|---|---|---|
| committer | zwlucas <lucas.oliveira1676@etec.sp.gov.br> | 2025-04-01 17:30:52 +0000 |
| commit | a7a6e965979f7c46c2511a33cb601172573f3c84 (patch) | |
| tree | fafef5889ca77346cdcbd1c4a3db9cc34268c82f /app/obrigado | |
| parent | e99de28b064275cdd0b04b98c6c3f50e85c01d7c (diff) | |
| download | eleicoes-a7a6e965979f7c46c2511a33cb601172573f3c84.tar.gz eleicoes-a7a6e965979f7c46c2511a33cb601172573f3c84.zip | |
removed cpf
Diffstat (limited to 'app/obrigado')
| -rw-r--r-- | app/obrigado/page.tsx | 8 |
1 files changed, 3 insertions, 5 deletions
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 ( <div className="flex min-h-screen flex-col items-center justify-center bg-[#f0f5fa] px-4 sm:px-6 lg:px-8"> |