nagasurendra commited on
Commit
5652eb4
·
verified ·
1 Parent(s): 557a1e6

Update templates/customdish.html

Browse files
Files changed (1) hide show
  1. templates/customdish.html +1 -9
templates/customdish.html CHANGED
@@ -462,15 +462,7 @@
462
  let options = [];
463
 
464
  // If user has already selected food type, proceed without repeating the question
465
- if (conversation.length === 2 && userInput) {
466
- // Check if it's the initial greeting with the food type preference
467
- if (userInput === "vegetarian" || userInput === "non-vegetarian") {
468
- botResponse = `Nice to meet you, ${userInput}! 😊 Let's create your perfect meal!`;
469
- options = [
470
- { text: 'Go Back', class: 'gray' }
471
- ];
472
- }
473
- } else if (lastMessage.includes('non-vegetarian')) {
474
  conversation.push({ role: 'user', message: 'Non-Vegetarian' });
475
  console.log("Food preference selected: Non-Vegetarian");
476
  botResponse = 'Great choice! 🍽️ Please select a non-vegetarian option:';
 
462
  let options = [];
463
 
464
  // If user has already selected food type, proceed without repeating the question
465
+ if (lastMessage.includes('non-vegetarian')) {
 
 
 
 
 
 
 
 
466
  conversation.push({ role: 'user', message: 'Non-Vegetarian' });
467
  console.log("Food preference selected: Non-Vegetarian");
468
  botResponse = 'Great choice! 🍽️ Please select a non-vegetarian option:';