Update templates/menu.html
Browse files- templates/menu.html +1 -1
templates/menu.html
CHANGED
@@ -661,7 +661,7 @@ function showItemDetails(name, price, image, description, section, selectedCateg
|
|
661 |
|
662 |
// First pass: Find and select the highest-count spice level
|
663 |
for (let spice of window.most_common_addons) {
|
664 |
-
const isSpiceLevel = ["Mild", "Medium", "
|
665 |
if (isSpiceLevel) {
|
666 |
checkboxes.forEach(checkbox => {
|
667 |
const checkboxName = checkbox.getAttribute('data-name').trim();
|
|
|
661 |
|
662 |
// First pass: Find and select the highest-count spice level
|
663 |
for (let spice of window.most_common_addons) {
|
664 |
+
const isSpiceLevel = ["Mild", "Medium", "Spicy", "Extra Spicy"].includes(spice); // Define valid spice levels
|
665 |
if (isSpiceLevel) {
|
666 |
checkboxes.forEach(checkbox => {
|
667 |
const checkboxName = checkbox.getAttribute('data-name').trim();
|