From aae11c0c4ddcd15b17760f97648111aeb7d3ff5e Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Thu, 14 May 2026 15:26:03 +0000 Subject: [PATCH] fix(GRO-1241): remove unused readOnly and senderName in Communication.tsx - Rename readOnly to _readOnly in MessageThread destructuring (satisfies ESLint no-unused-vars rule) - Remove unused senderName variable in messages map Co-Authored-By: Paperclip --- apps/web/src/portal/sections/Communication.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/web/src/portal/sections/Communication.tsx b/apps/web/src/portal/sections/Communication.tsx index 6261aac..50450fe 100644 --- a/apps/web/src/portal/sections/Communication.tsx +++ b/apps/web/src/portal/sections/Communication.tsx @@ -58,7 +58,7 @@ interface MessageThreadProps { readOnly: boolean; } -function MessageThread({ sessionId, readOnly }: MessageThreadProps) { +function MessageThread({ sessionId, readOnly: _readOnly }: MessageThreadProps) { const [businessName, setBusinessName] = useState("Business"); const { conversation, loading: convLoading, error: convError } = useConversation(sessionId); @@ -144,7 +144,6 @@ function MessageThread({ sessionId, readOnly }: MessageThreadProps) { ) : ( messages.map((msg: ApiMessage) => { const sender = msg.direction === "inbound" ? "customer" : "business"; - const senderName = sender === "customer" ? "You" : businessName; return (