search case insensitive

This commit is contained in:
VividTruthKeeper 2022-08-29 23:24:45 +05:00
parent 962b8e5ce8
commit d53843ae3c
1 changed files with 6 additions and 1 deletions

View File

@ -89,7 +89,12 @@ const SearchTable = () => {
</tr>
);
} else {
if (Object.values(player).toString().includes(searchItem)) {
if (
Object.values(player)
.toString()
.toLowerCase()
.includes(searchItem.toLowerCase())
) {
return (
<tr key={uuidv4()} className="search-tr">
{/* N_o */}