Skip to content

Commit

Permalink
style: Condition 'typeof enterButton === 'undefined'' is always false. (
Browse files Browse the repository at this point in the history
  • Loading branch information
xjh22222228 committed Jun 13, 2021
1 parent 832aa81 commit fe35f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/input/Search.tsx
Expand Up @@ -69,7 +69,7 @@ const Search = React.forwardRef<Input, SearchProps>((props, ref) => {
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);

const searchIcon =
typeof enterButton === 'boolean' || typeof enterButton === 'undefined' ? (
typeof enterButton === 'boolean' ? (
<SearchOutlined />
) : null;
const btnClassName = `${prefixCls}-button`;
Expand Down

0 comments on commit fe35f41

Please sign in to comment.