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