Skip to content

Commit

Permalink
Limit searching
Browse files Browse the repository at this point in the history
  • Loading branch information
tanish35 committed Oct 23, 2024
1 parent 84778b9 commit ee9205b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/SearchBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const SearchBar = () => {
};

const onSuggestionsFetchRequested = ({ value }) => {
if (value.length >= 1) {
if (value.length >= 3) {
fetchSuggestions(value);
} else {
setSuggestions([]);
Expand Down

0 comments on commit ee9205b

Please sign in to comment.