fix/frontend: finally fix jade champions filter
This commit is contained in:
@@ -30,11 +30,12 @@ const champions = computed(() => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
championsData.value
|
championsData.value
|
||||||
|
// Skip 'None' champion at beginning of array
|
||||||
.slice(1)
|
.slice(1)
|
||||||
// Filter out Doom Bots and League Classic champions (prefixed by `jade_`)
|
// Filter out Doom Bots and League Classic champions (prefixed by `jade_`)
|
||||||
.filter(
|
.filter(
|
||||||
(champion: ChampionSummary) =>
|
(champion: ChampionSummary) =>
|
||||||
!(champion.name.includes('Doom Bot') || champion.alias.startsWith('jade_'))
|
!(champion.name.includes('Doom Bot') || champion.alias.toLowerCase().startsWith('jade_'))
|
||||||
)
|
)
|
||||||
.sort((a: ChampionSummary, b: ChampionSummary) => a.name.localeCompare(b.name))
|
.sort((a: ChampionSummary, b: ChampionSummary) => a.name.localeCompare(b.name))
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user