fix/frontend: finally fix jade champions filter
This commit is contained in:
@@ -30,11 +30,12 @@ const champions = computed(() => {
|
||||
|
||||
return (
|
||||
championsData.value
|
||||
// Skip 'None' champion at beginning of array
|
||||
.slice(1)
|
||||
// Filter out Doom Bots and League Classic champions (prefixed by `jade_`)
|
||||
.filter(
|
||||
(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))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user