Spaces:
Running
Running
Update templates/menu.html
Browse files- 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');
|