Spaces:
Sleeping
Sleeping
Update templates/menu.html
Browse files- templates/menu.html +2 -2
templates/menu.html
CHANGED
|
@@ -1049,7 +1049,7 @@ function increaseQuantity(name, index) {
|
|
| 1049 |
currentQuantity++;
|
| 1050 |
quantityElement.innerText = currentQuantity;
|
| 1051 |
|
| 1052 |
-
|
| 1053 |
}
|
| 1054 |
|
| 1055 |
// Function to decrease quantity
|
|
@@ -1082,7 +1082,7 @@ function increaseQuantity(name, index) {
|
|
| 1082 |
removeFromCart(name, index); // Remove item from the cart when quantity reaches 0
|
| 1083 |
} else {
|
| 1084 |
// Otherwise, update cart quantity
|
| 1085 |
-
|
| 1086 |
}
|
| 1087 |
}
|
| 1088 |
}
|
|
|
|
| 1049 |
currentQuantity++;
|
| 1050 |
quantityElement.innerText = currentQuantity;
|
| 1051 |
|
| 1052 |
+
updateQuantity(name, currentQuantity);
|
| 1053 |
}
|
| 1054 |
|
| 1055 |
// Function to decrease quantity
|
|
|
|
| 1082 |
removeFromCart(name, index); // Remove item from the cart when quantity reaches 0
|
| 1083 |
} else {
|
| 1084 |
// Otherwise, update cart quantity
|
| 1085 |
+
updateQuantity(name, currentQuantity);
|
| 1086 |
}
|
| 1087 |
}
|
| 1088 |
}
|