Skip to content

Commit

Permalink
3k Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSimpleDev committed Oct 31, 2024
1 parent 2d56f31 commit 34d7ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 2-copy-of-code/lesson-03/chatbot.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
setInputText(event.target.value);
}

function sendMessage() {
async function sendMessage() {
const newChatMessages = [
...chatMessages,
{
Expand All @@ -32,7 +32,7 @@

setChatMessages(newChatMessages);

const response = Chatbot.getResponse(inputText);
const response = await Chatbot.getResponseAsync(inputText);
setChatMessages([
...newChatMessages,
{
Expand Down

0 comments on commit 34d7ae9

Please sign in to comment.