From 289194d5d8a855049c51da121d4f38517fc9709f Mon Sep 17 00:00:00 2001 From: "MH.Dmitrii" Date: Sun, 10 May 2026 18:22:51 +0300 Subject: [PATCH] fix food radio --- server/frontend/main/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/frontend/main/api.js b/server/frontend/main/api.js index 5b18edb..0250c87 100644 --- a/server/frontend/main/api.js +++ b/server/frontend/main/api.js @@ -24,7 +24,7 @@ document.addEventListener("DOMContentLoaded", () => { surname: document.getElementById('flname').value || "", text_field: document.getElementById('text_field')?.value || "Пожеланий Нет", activated: true, - types_of_food: document.querySelector('input[name="food"]:checked')?.value || "Мясо (Дефолт)", + type_of_food: document.querySelector('input[name="food"]:checked')?.value || "Мясо (Дефолт)", types_of_alco: Array.from(document.querySelectorAll('input[name="drink"]:checked')) .map(el => el.value) .join(', ') || "Сок"