Explorar el Código

do not allow empty strings

Shun Miyazawa hace 2 años
padre
commit
4f38378987

+ 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 { data: currentPagePath } = useCurrentPagePath();
 
 
-  const shouldShowMenuItem = searchKeyword.length > 0;
+  const shouldShowMenuItem = searchKeyword.trim().length > 0;
 
 
   return (
   return (
     <>
     <>