fix/frontend: finally fix jade champions filter

This commit is contained in:
2026-08-17 17:58:03 +02:00
parent ab2eca8e9c
commit fe5569fcd7
+2 -1
View File
@@ -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))
)