Skip to content

Commit

Permalink
fix: fixed noResultFound
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhyvotenkoOleksandr committed Aug 31, 2023
1 parent b394a57 commit 5c25e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const Search = ({

// Show dropdown only when `isOpen` is set to `true` and there are items in the list.
const open = (isOpen || !canClose || shouldStayOpen) && itemList.length > 0 && !shouldHideMenu;
const noResultFound = open && !isLoading && itemList.length <= 1 && inputValue.length < minChars;
const noResultFound = open && !isLoading && itemList.length <= 1 && inputValue.length >= minChars;

// Keyboard shortcuts.
useHotkeys(isOSX ? "cmd+k" : "ctrl+k", (event) => {
Expand Down

0 comments on commit 5c25e93

Please sign in to comment.