nagasurendra commited on
Commit
17b014e
·
verified ·
1 Parent(s): ba93f0b

Update static/script.js

Browse files
Files changed (1) hide show
  1. static/script.js +2 -1
static/script.js CHANGED
@@ -51,7 +51,8 @@ function handleResponse(userInput) {
51
  conversation.push({ role: 'user', message: 'Non-Vegetarian' });
52
  console.log("Food preference selected: Non-Vegetarian");
53
  botResponse = 'Great choice! 🍽️ Please select a non-vegetarian option:';
54
- fetchIngredients('Non-Vegetarian');
 
55
 
56
  }
57
  else if (lastMessage.includes('vegetarian')) {
 
51
  conversation.push({ role: 'user', message: 'Non-Vegetarian' });
52
  console.log("Food preference selected: Non-Vegetarian");
53
  botResponse = 'Great choice! 🍽️ Please select a non-vegetarian option:';
54
+ fetchIngredients('non-vegetarian');
55
+ return;
56
 
57
  }
58
  else if (lastMessage.includes('vegetarian')) {