toLowerCase

This commit is contained in:
wrzesinski-hubert 2020-07-21 21:03:19 +02:00
parent 5c53bc8936
commit f2f87682ad

View File

@ -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
};