DSatishchandra commited on
Commit
a16b3f9
·
verified ·
1 Parent(s): 7553881

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. 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