diff --git a/front/src/components/chat/Chat.tsx b/front/src/components/chat/Chat.tsx index ef74698..3c3e93c 100644 --- a/front/src/components/chat/Chat.tsx +++ b/front/src/components/chat/Chat.tsx @@ -49,6 +49,14 @@ const Chat = () => { setCurrentChannel(data); setJoinedChannels((prev) => [...prev, data]); }); + + tmpSocket.on('exception', (data) => { + if (Array.isArray(data.message)) { + alert(data.message.join('\n')); + } else { + alert(data.message); + } + }); }); return () => {