diff --git a/components/DirectoryLayout.tsx b/components/DirectoryLayout.tsx index a591dcc..7f5b653 100644 --- a/components/DirectoryLayout.tsx +++ b/components/DirectoryLayout.tsx @@ -53,7 +53,9 @@ const DirectoryLayout = (props: LayoutProps) => { if (!startupsQuery?.data) return []; // eslint-disable-next-line @typescript-eslint/no-unsafe-return return startupsQuery.data?.filter((project: Project) => { - const matchesName = project.name.toLowerCase().includes(startupSearchText.toLowerCase()); + const matchesName = project.name + .toLowerCase() + .includes(startupSearchText.toLowerCase()); // const matchesCategory = selectedProjectCategory === "" || project.category === selectedProjectCategory; @@ -64,7 +66,9 @@ const DirectoryLayout = (props: LayoutProps) => { return (