Skip to content

Commit

Permalink
search hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Carol Sachdeva committed Jun 17, 2022
1 parent 533bf2d commit abfc7b3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/p2p/src/components/search-box/search-box.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@ const SearchBox = ({ className, onClear, onSearch, placeholder }) => {
}
};

const onSearchKeyDown = (search, submitForm) => {
if (!search) {
onClear();
} else {
submitForm();
}
};
const onSearchKeyDown = (search, submitForm) => (search ? submitForm() : onClear());

const onSearchKeyUp = submitForm => {
clearTimeout(typing_timer);
Expand Down

0 comments on commit abfc7b3

Please sign in to comment.