diff --git a/fe/src/pages/ChatRoom.tsx b/fe/src/pages/ChatRoom.tsx index 672735a18..6db476a2f 100644 --- a/fe/src/pages/ChatRoom.tsx +++ b/fe/src/pages/ChatRoom.tsx @@ -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]);