Skip to content

Commit

Permalink
fix search full name
Browse files Browse the repository at this point in the history
  • Loading branch information
greyluo committed May 24, 2024
1 parent 09b98bd commit 9d699b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/Pages/Inductees.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@
|| (major_option == "Other" && !majors.includes(inducteeData.major)))
&& (year_option == "all" || inducteeData.grad_year == parseInt(year_option))
&& (class_option == "all" || inducteeData.induction_class == class_option)
&& (searchText == "" || inducteeData.preferred_name.toLowerCase().includes(searchText.toLowerCase())
|| inducteeData.last_name.toLowerCase().includes(searchText.toLowerCase())
&& (searchText == "" || (inducteeData.preferred_name.toLowerCase() + " " + inducteeData.last_name.toLowerCase()).includes(searchText.toLowerCase())
|| inducteeData.email.toLowerCase().includes(searchText.toLowerCase()));
});
}
Expand Down

0 comments on commit 9d699b7

Please sign in to comment.