diff --git a/2-copy-of-code/lesson-03/chatbot.html b/2-copy-of-code/lesson-03/chatbot.html index 22d4d1d..054b112 100755 --- a/2-copy-of-code/lesson-03/chatbot.html +++ b/2-copy-of-code/lesson-03/chatbot.html @@ -20,7 +20,7 @@ setInputText(event.target.value); } - function sendMessage() { + async function sendMessage() { const newChatMessages = [ ...chatMessages, { @@ -32,7 +32,7 @@ setChatMessages(newChatMessages); - const response = Chatbot.getResponse(inputText); + const response = await Chatbot.getResponseAsync(inputText); setChatMessages([ ...newChatMessages, {