diff options
| author | zwlucas <lucas.oliveira1676@etec.sp.gov.br> | 2025-04-01 12:31:21 +0000 |
|---|---|---|
| committer | zwlucas <lucas.oliveira1676@etec.sp.gov.br> | 2025-04-01 12:31:21 +0000 |
| commit | e99de28b064275cdd0b04b98c6c3f50e85c01d7c (patch) | |
| tree | ed5d033244c67cd6dc433dbc16f2334ffb2b753f /app/obrigado/page.tsx | |
| parent | e6eb13c9d0260ae6d9cc405e54b6ea27dedac8dd (diff) | |
| download | eleicoes-e99de28b064275cdd0b04b98c6c3f50e85c01d7c.tar.gz eleicoes-e99de28b064275cdd0b04b98c6c3f50e85c01d7c.zip | |
revert: new sounds
Diffstat (limited to 'app/obrigado/page.tsx')
| -rw-r--r-- | app/obrigado/page.tsx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/app/obrigado/page.tsx b/app/obrigado/page.tsx index c5d3bc5..7234012 100644 --- a/app/obrigado/page.tsx +++ b/app/obrigado/page.tsx @@ -27,19 +27,12 @@ export default function ObrigadoPage() { const hasRun = useRef(false); - const [audioElement, setAudioElement] = useState<HTMLAudioElement>() - useEffect(() => { if (!rm || !name || !cpf || !option) { window.location.href = "/"; return; } - if (!audioElement) { - const audio = new Audio('/confirma.mp3') - setAudioElement(audio) - } - const saveVote = async () => { try { const supabase = getSupabaseClient(); @@ -70,8 +63,6 @@ export default function ObrigadoPage() { } setSaveStatus("success"); - if (!audioElement) return; - audioElement.play(); } catch (error) { console.error("Erro ao salvar voto:", error); setSaveStatus("error"); |