toLowerCase
This commit is contained in:
parent
5c53bc8936
commit
f2f87682ad
@ -47,7 +47,7 @@ export const Results: React.FC = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const filterLectures = (value: string) => {
|
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);
|
console.log(zmienna);
|
||||||
return zmienna
|
return zmienna
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user