fix/frontend: tryfix jade champions
This commit is contained in:
@@ -31,9 +31,11 @@ const champions = computed(() => {
|
|||||||
return (
|
return (
|
||||||
championsData.value
|
championsData.value
|
||||||
.slice(1)
|
.slice(1)
|
||||||
.filter((champion: ChampionSummary) => !champion.name.includes('Doom Bot'))
|
// Filter out Doom Bots and League Classic champions (prefixed by `jade_`)
|
||||||
// Filter out League Classic champions, prefixed by `jade_`
|
.filter(
|
||||||
.filter((champion: ChampionSummary) => !champion.alias.includes('jade_'))
|
(champion: ChampionSummary) =>
|
||||||
|
!(champion.name.includes('Doom Bot') || champion.alias.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