fix food radio
Some checks failed
Build Docker / deploy (push) Failing after 1m1s
Build Docker / build (push) Has been skipped

This commit is contained in:
2026-05-10 18:22:51 +03:00
parent 95dadf4c90
commit 289194d5d8

View File

@@ -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(', ') || "Сок"