diff --git a/striker-ui/components/Select.tsx b/striker-ui/components/Select.tsx index 8f98cce0..db652b90 100644 --- a/striker-ui/components/Select.tsx +++ b/striker-ui/components/Select.tsx @@ -29,14 +29,15 @@ const Select: FC = (selectProps) => { onClearIndicatorClick = SELECT_DEFAULT_PROPS.onClearIndicatorClick, ...muiSelectProps } = selectProps; - const { children, sx } = muiSelectProps; - const clearIndicator: JSX.Element | undefined = onClearIndicatorClick ? ( - - - - - - ) : undefined; + const { children, sx, value } = muiSelectProps; + const clearIndicator: JSX.Element | undefined = + String(value).length > 0 && onClearIndicatorClick ? ( + + + + + + ) : undefined; const combinedSx = { [`& .${muiSelectClasses.icon}`]: {