diff --git a/apps/dispatch/app/_components/left/Chat.tsx b/apps/dispatch/app/_components/left/Chat.tsx index 635c518e..8f75105c 100644 --- a/apps/dispatch/app/_components/left/Chat.tsx +++ b/apps/dispatch/app/_components/left/Chat.tsx @@ -139,7 +139,13 @@ export const Chat = () => { setSelectedChat(userId)} + onClick={() => { + if (selectedChat === userId) { + setSelectedChat(null); + return; + } + setSelectedChat(userId); + }} > {chat.name} {chat.notification && }