Fix weapon and character search
parent
0c7ce753c4
commit
fd09da952d
|
@ -91,7 +91,7 @@
|
|||
|
||||
$: characters = Object.entries(characterList).sort((a, b) => a[1].name.localeCompare(b[1].name));
|
||||
|
||||
$: filteredCharacter = characters.filter((e) => e[1].name.toLowerCase().includes(search));
|
||||
$: filteredCharacter = characters.filter((e) => e[1].name.toLowerCase().includes(search.toLowerCase()));
|
||||
$: maxItemRow = Math.min(6, filteredCharacter.length);
|
||||
|
||||
$: nothingSelected = selected === null;
|
||||
|
|
|
@ -93,7 +93,7 @@
|
|||
.filter((e) => e[1].rarity >= 3)
|
||||
.sort((a, b) => a[1].name.localeCompare(b[1].name));
|
||||
|
||||
$: filteredWeapons = weapons.filter((e) => e[1].name.toLowerCase().includes(search));
|
||||
$: filteredWeapons = weapons.filter((e) => e[1].name.toLowerCase().includes(search.toLowerCase()));
|
||||
$: maxItemRow = Math.min(6, filteredWeapons.length);
|
||||
|
||||
$: nothingSelected = selected === null;
|
||||
|
|
Loading…
Reference in New Issue