diff --git a/src/components/Select/components/SelectControl/SelectControl.tsx b/src/components/Select/components/SelectControl/SelectControl.tsx index 5f77482b62..09d361cf9b 100644 --- a/src/components/Select/components/SelectControl/SelectControl.tsx +++ b/src/components/Select/components/SelectControl/SelectControl.tsx @@ -117,10 +117,9 @@ export const SelectControl = React.forwardRef(( } const count = Number(value?.length) || 0; const counterComponent = ; - if (renderCounter) { - return renderCounter(counterComponent, {count, size, disabled}); - } - return counterComponent; + return renderCounter + ? renderCounter(counterComponent, {count, size, disabled}) + : counterComponent; }; const renderClearIcon = (args: SelectRenderClearArgs) => {