Skip to content

Commit

Permalink
fix/#135: message 타입 수정 (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
qkdflrgs authored Oct 6, 2023
1 parent 6424ddb commit 1a3090f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fe/src/pages/ChatRoom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const ChatRoom = () => {
client.deactivate();
};

const callback = (message) => {
const callback = (message: StompJs.Message) => {
if (message.body) {
const newMessage = JSON.parse(message.body);
setChatList((chats) => [...chats, newMessage.messages]);
Expand Down

0 comments on commit 1a3090f

Please sign in to comment.