aboutsummaryrefslogtreecommitdiff
path: root/app/obrigado/page.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/obrigado/page.tsx')
-rw-r--r--app/obrigado/page.tsx5
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,
},
]);