diff --git a/chatbot.js b/chatbot.js index a3b9a2b..b137545 100644 --- a/chatbot.js +++ b/chatbot.js @@ -60,7 +60,7 @@ async function sendMessage() { let input = document.getElementById("chatbot-input").value; if (input) { displayUserMessage(input); - document.getElementById("chatbot-input").value = ""; // Clearing the mesage iput field justn after user message is displayed. + document.getElementById("chatbot-input").value = ""; // Clearing the mesage input field just after user message is displayed. // Wait for the chatbot response let output = await chatbot(input); // Ensure this line is awaited