Skip to content

Commit

Permalink
fixed bug and changed to infrawise
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayushmaanagarwal1211 committed Jan 13, 2025
1 parent 114e109 commit c3c8b40
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,13 @@ function page() {
const [searchTerm, setSearchTerm] = useState("");
const [selectedSkill, setSelectedSkill] = useState("All");

const handleConnect = () => {
const handleConnect = (expert) => {
setSelectedExpert(expert);
setShowPayment(true);
};

const filteredExperts = experts.filter(expert => {
console.log(expert)
const matchesSearch = expert.name.toLowerCase().includes(searchTerm.toLowerCase()) ||
expert.skills.some(skill => skill.toLowerCase().includes(searchTerm.toLowerCase()));
const matchesSkill = selectedSkill === "All" || expert.skills.some(skill => skill.includes(selectedSkill));
Expand Down

0 comments on commit c3c8b40

Please sign in to comment.