fix: typos and improve naming conventions: (#8687)

This commit is contained in:
Nam Vu 2024-09-23 20:32:58 +07:00 • committed by GitHub
commit bef83a4d2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 37 additions and 38 deletions

View file

@ -334,9 +334,9 @@ export const useChat = (
const newChatList = produce(chatListRef.current, (draft) => {
const index = draft.findIndex(item => item.id === responseItem.id)
if (index !== -1) {
const requestion = draft[index - 1]
const question = draft[index - 1]
draft[index - 1] = {
...requestion,
...question,
}
draft[index] = {
...draft[index],