Correction in search function in Employees.
This commit is contained in:
parent
9f6d7580e3
commit
589ba569f6
@ -73,7 +73,7 @@ const EmployeeList = () => {
|
|||||||
}
|
}
|
||||||
const lowercasedText = text.toLowerCase();
|
const lowercasedText = text.toLowerCase();
|
||||||
return data.filter((item) => {
|
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 email = item.email ? item.email.toLowerCase() : "";
|
||||||
const phoneNumber = item.phoneNumber ? item.phoneNumber.toLowerCase() : "";
|
const phoneNumber = item.phoneNumber ? item.phoneNumber.toLowerCase() : "";
|
||||||
const jobRole = item.jobRole ? item.jobRole.toLowerCase() : "";
|
const jobRole = item.jobRole ? item.jobRole.toLowerCase() : "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user