nagasurendra commited on
Commit
83ef944
·
verified ·
1 Parent(s): 3bfb127

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +1 -1
templates/menu.html CHANGED
@@ -415,7 +415,7 @@
415
 
416
  function addToCartFromModal() {
417
  const itemName = document.getElementById('modal-name').innerText;
418
- const itemPrice = parseFloat(document.getElementById('modal-price').innerText.replace('', ''));
419
  const itemImage = document.getElementById('modal-img').src;
420
  const modalSectionEl = document.getElementById('modal-section');
421
  const section = modalSectionEl.getAttribute('data-section');
 
415
 
416
  function addToCartFromModal() {
417
  const itemName = document.getElementById('modal-name').innerText;
418
+ const itemPrice = parseFloat(document.getElementById('modal-price').innerText.replace('$', ''));
419
  const itemImage = document.getElementById('modal-img').src;
420
  const modalSectionEl = document.getElementById('modal-section');
421
  const section = modalSectionEl.getAttribute('data-section');