nagasurendra commited on
Commit
ddc56cd
·
verified ·
1 Parent(s): 3f242d5

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +2 -10
templates/index.html CHANGED
@@ -463,16 +463,8 @@
463
  handleYesResponse();
464
  return;
465
  } else if (lastMessage.includes('no') && selectedMenuItem) {
466
- // Add the selected item to selectedItems array
467
- selectedItems = [{ ...selectedMenuItem, ingredients: [] }];
468
-
469
- // Show quantity input + call promptAndSubmit with default value (e.g., 1)
470
- const qty = 1;
471
- promptAndSubmit(qty);
472
-
473
- // Reset state
474
- selectedMenuItem = null;
475
- selectedIngredients = [];
476
  return;
477
  }
478
 
 
463
  handleYesResponse();
464
  return;
465
  } else if (lastMessage.includes('no') && selectedMenuItem) {
466
+ // Submit the dish without customization
467
+ submitCustomizationIngredients();
 
 
 
 
 
 
 
 
468
  return;
469
  }
470