Skip to content

Commit

Permalink
removed console.log from SearchList component
Browse files Browse the repository at this point in the history
  • Loading branch information
borjaMarti committed Feb 19, 2024
1 parent 95d2e71 commit 0e1464e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/SearchList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ const SearchList = ({ data, setNewList }) => {
const handlefiltering = (e) => {
const userinput = e.target.value.toLowerCase();
setValue(e.target.value);
let gatherItem = [];
const gatherItem = [];
for (let i = 0; i < data.length; i++) {
console.log('data[i].name', data[i]?.name);
if (data[i]?.name.toLowerCase().includes(userinput)) {
gatherItem.push(data[i]);
}
Expand Down

0 comments on commit 0e1464e

Please sign in to comment.