diff --git a/server/frontend/main/api.js b/server/frontend/main/api.js index 2efab81..c203659 100644 --- a/server/frontend/main/api.js +++ b/server/frontend/main/api.js @@ -24,10 +24,10 @@ 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, + types_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(', ') + .join(', ') || "Сок" }; try {