mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2024-11-22 06:57:32 +01:00
Fix weapon and character search
This commit is contained in:
parent
0c7ce753c4
commit
fd09da952d
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue