Skip to content

Commit 9e09741

Browse files
zombieJclaude
andcommitted
chore: remove redundant boolean operators in showHasValueCls
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ed52b4e commit 9e09741

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/SelectInput/Content/SingleContent.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,11 @@ const SingleContent = React.forwardRef<HTMLInputElement, SharedContentProps>(
6363
}, [combobox, activeValue]);
6464

6565
// ========================== Render ==========================
66-
const showHasValueCls = !!(
66+
const showHasValueCls =
6767
displayValue &&
6868
displayValue.label !== null &&
6969
displayValue.label !== undefined &&
70-
String(displayValue.label).trim() !== ''
71-
);
70+
String(displayValue.label).trim() !== '';
7271

7372
// Render value
7473
const renderValue = displayValue ? (

0 commit comments

Comments
 (0)