Skip to content

Commit

Permalink
fix(chat): infinite loading spinner in Adelina AI and ADAMANT Exchang…
Browse files Browse the repository at this point in the history
…e chats
  • Loading branch information
bludnic committed Sep 4, 2024
1 parent 6678318 commit 1cfa868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/chat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const getters = {
const chat = state.chats[senderId]

if (chat) {
return chat.messages.sort((left, right) => left.timestamp - right.timestamp)
return [...chat.messages].sort((left, right) => left.timestamp - right.timestamp)
}

return []
Expand Down

1 comment on commit 1cfa868

@bludnic
Copy link
Member Author

@bludnic bludnic commented on 1cfa868 Sep 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.