Spaces:
Sleeping
Sleeping
Update templates/menu.html
Browse files- templates/menu.html +2 -2
templates/menu.html
CHANGED
|
@@ -625,8 +625,8 @@ function addToCartFromModal() {
|
|
| 625 |
const modalSectionEl = document.getElementById('modal-section');
|
| 626 |
const section = modalSectionEl.getAttribute('data-section');
|
| 627 |
const selectedCategory = modalSectionEl.getAttribute('data-category');
|
| 628 |
-
if (!itemName || !itemPrice || !section) {
|
| 629 |
-
console.error('Missing data for cart item:', { itemName, itemPrice, section });
|
| 630 |
return;
|
| 631 |
}
|
| 632 |
|
|
|
|
| 625 |
const modalSectionEl = document.getElementById('modal-section');
|
| 626 |
const section = modalSectionEl.getAttribute('data-section');
|
| 627 |
const selectedCategory = modalSectionEl.getAttribute('data-category');
|
| 628 |
+
if (!itemName || !itemPrice || !section || !itemImage) {
|
| 629 |
+
console.error('Missing data for cart item:', { itemName, itemPrice, section, itemImage});
|
| 630 |
return;
|
| 631 |
}
|
| 632 |
|