Skip to content

Commit 4ca41fe

Browse files
authored
🐛 Remove duplicate selection state for interaction messages (#608)
- The yes/no buttons had some duplicate selection state logic. Leave the selection state to the underlying PF component. Use selectedResponse state for disabled, but let click handler indicate the selection. <img width="704" height="166" alt="Screenshot 2025-07-21 at 9 57 31 PM" src="https://github.com/user-attachments/assets/53450813-9ab7-47e7-9ee2-c00e95802929" /> Signed-off-by: Ian Bolton <[email protected]>
1 parent e5e9f1b commit 4ca41fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/ResolutionsPage/ReceivedMessage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const ReceivedMessage: React.FC<ReceivedMessageProps> = ({
6868
handleQuickResponse(response.id, response.messageToken);
6969
},
7070
isDisabled: response.isDisabled || isProcessing || selectedResponse !== null,
71-
content: selectedResponse === response.id ? `✓ ${response.content}` : response.content,
71+
content: response.content,
7272
}))}
7373
extraContent={
7474
extraContent

0 commit comments

Comments
 (0)