Skip to content

Commit

Permalink
Merge pull request #15 from schan523/sunny
Browse files Browse the repository at this point in the history
updating search functionality
  • Loading branch information
schan523 authored Dec 3, 2024
2 parents 3ac616d + 5e40e3f commit ab04455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Database.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function Database() {

const search = (e) => {
const filteredItems = data.profiles.filter((profile) =>
profile.firstName.includes(e.target.value) || profile.lastName.includes(e.target.value));
profile.firstName.toLowerCase().includes(e.target.value.toLowerCase()) || profile.lastName.toLowerCase().includes(e.target.value.toLowerCase()));
setFiltered(filteredItems);
}

Expand Down

0 comments on commit ab04455

Please sign in to comment.