Fix weapon and character search

pull/1/head
I Made Setia Baruna 2021-01-08 16:32:22 +08:00
parent 0c7ce753c4
commit fd09da952d
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;