From f2f87682ad4fd3bb5c68f05f3371f625107a2bd3 Mon Sep 17 00:00:00 2001 From: wrzesinski-hubert Date: Tue, 21 Jul 2020 21:03:19 +0200 Subject: [PATCH] toLowerCase --- src/components/TopBar/Results/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TopBar/Results/index.tsx b/src/components/TopBar/Results/index.tsx index fa990cf..232c7de 100644 --- a/src/components/TopBar/Results/index.tsx +++ b/src/components/TopBar/Results/index.tsx @@ -47,7 +47,7 @@ export const Results: React.FC = () => { useEffect(() => { const filterLectures = (value: string) => { - const zmienna= lecturesData.filter((lecture) => lecture.name.includes(value)); + const zmienna= lecturesData.filter((lecture) => lecture.name.toLowerCase().includes(value.toLowerCase())); console.log(zmienna); return zmienna };