Correction in search function in Employees.

This commit is contained in:
Kartik sharma 2025-06-23 16:46:13 +05:30
parent b20e6d17eb
commit 3283eb389a

View File

@ -73,7 +73,7 @@ const EmployeeList = () => {
}
const lowercasedText = text.toLowerCase();
return data.filter((item) => {
const fullName = `${item.firstName} ${item.lastName} ${item.lastName}`.toLowerCase();
const fullName = `${item.firstName} ${item.middleName} ${item.lastName}`.toLowerCase();
const email = item.email ? item.email.toLowerCase() : "";
const phoneNumber = item.phoneNumber ? item.phoneNumber.toLowerCase() : "";
const jobRole = item.jobRole ? item.jobRole.toLowerCase() : "";