Преглед на файлове

do not allow empty strings

Shun Miyazawa преди 2 години
родител
ревизия
4f38378987
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      apps/app/src/features/search/client/components/SearchMethodMenuItem.tsx

+ 1 - 1
apps/app/src/features/search/client/components/SearchMethodMenuItem.tsx

@@ -23,7 +23,7 @@ export const SearchMethodMenuItem = (props: Props): JSX.Element => {
 
   const { data: currentPagePath } = useCurrentPagePath();
 
-  const shouldShowMenuItem = searchKeyword.length > 0;
+  const shouldShowMenuItem = searchKeyword.trim().length > 0;
 
   return (
     <>