Skip to content

Commit

Permalink
fix search logic
Browse files Browse the repository at this point in the history
  • Loading branch information
francoborrelli committed Aug 24, 2024
1 parent ad4618f commit c7ec551
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/constants/cv/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { PersonalProjects } from './personalProjects';
import { ProfessionalExperience } from './experience';

export const playlists: Playlist[] = [
Skills,
ProfessionalExperience,
PersonalProjects,
Education,
Publications,
Skills,
];
4 changes: 2 additions & 2 deletions src/pages/Search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ export const SearchPage = () => {
const results = data.filter((item) =>
searchableKeys.some(
(key) =>
item.skills.some((skill) => skill.text.toLowerCase().includes(search)) ||
t(item[key] || '')
.toLowerCase()
.includes(search)
.includes(search) ||
item.skills.some((skill) => skill.text.toLowerCase().includes(search))
)
);

Expand Down

0 comments on commit c7ec551

Please sign in to comment.