Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(dashboard): scope the chat row comment to the Chats list

Yudhi Armyndharis7ddf7229af7c
diff --git a/dashboard/src/components/chats/ChatSidebar.tsx b/dashboard/src/components/chats/ChatSidebar.tsx
index 8ce68a110..cb210a78d 100644
--- a/dashboard/src/components/chats/ChatSidebar.tsx
+++ b/dashboard/src/components/chats/ChatSidebar.tsx
@@ -63,9 +63,9 @@ function ChatSidebar({
const formatLastMessageSnippet = (chat: Chat) => chat.lastMessage || '';
- // Shared row markup for the Chats and Status lists — a plain function (not memoized) since it
- // closes over render-scoped props (chatsTab.activeChatId, chatsTab.pictures) that already
- // change every render.
+ // Row markup for the Chats list: a plain function (not memoized) since it closes over
+ // render-scoped props (chatsTab.activeChatId, chatsTab.pictures) that already change every
+ // render.
const renderChatRow = (chat: Chat) => {
const isActive = chatsTab.activeChatId === chat.id;
return (