diff options
Diffstat (limited to 'app/obrigado')
| -rw-r--r-- | app/obrigado/page.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/obrigado/page.tsx b/app/obrigado/page.tsx index 7805719..173436b 100644 --- a/app/obrigado/page.tsx +++ b/app/obrigado/page.tsx @@ -35,12 +35,13 @@ export default function ObrigadoPage() { const saveVote = async () => { try { const supabase = getSupabaseClient(); - + + const optionRegistered = option === "NULO" ? "SIE" : option; const { error } = await supabase.from("votes").insert([ { rm, name, - option, + option: optionRegistered, }, ]); |