Skip to content

Commit

Permalink
fix: set status to idle after response
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlosfarah committed Apr 4, 2024
1 parent c0f453a commit 6084db3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/message/MessagesPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ const MessagesPane = ({
},
};
// const updatedMessagesWithResponse = [...updatedMessages, response];
setTimeout(() => {
setMessages((m) => [...m, response]);
setStatus(Status.Idle);
}, 2000);
setMessages((m) => [...m, response]);
})
.finally(() => {
// set status back to idle
setStatus(Status.Idle);

// post comment from bot
// postAppDataAsync({
// data: actionData,
Expand Down

0 comments on commit 6084db3

Please sign in to comment.