Skip to content

Commit 63fcac7

Browse files
committed
fix: correct logical operator in export button className
- Change OR (||) to AND (&&) operator for conditional opacity classes - Fixes issue where string operand would always be truthy - Addresses additional Copilot review feedback
1 parent 02dc1af commit 63fcac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/chat/ModeSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ export const ModeSelector = ({
311311
size="icon"
312312
className={cn(
313313
"h-6 w-6 p-0.5",
314-
isExporting === mode.slug ||
314+
isExporting !== mode.slug &&
315315
"opacity-0 group-hover:opacity-100",
316316
"transition-opacity",
317317
)}

0 commit comments

Comments
 (0)