diff --git a/packages/odyssey-react-mui/src/TextField.tsx b/packages/odyssey-react-mui/src/TextField.tsx index 9d9841f88a..5a3b6bc0c2 100644 --- a/packages/odyssey-react-mui/src/TextField.tsx +++ b/packages/odyssey-react-mui/src/TextField.tsx @@ -138,7 +138,9 @@ const TextField = forwardRef( /* eslint-disable-next-line jsx-a11y/no-autofocus */ autoFocus={hasInitialFocus} endAdornment={ - {endAdornment} + endAdornment && ( + {endAdornment} + ) } id={id} multiline={isMultiline} @@ -150,7 +152,9 @@ const TextField = forwardRef( readOnly={isReadOnly} ref={ref} startAdornment={ - {startAdornment} + startAdornment && ( + {startAdornment} + ) } type={type} value={value}