diff --git a/frontend/components/ChampionSelector.vue b/frontend/components/ChampionSelector.vue index 41d5927..59d04f8 100644 --- a/frontend/components/ChampionSelector.vue +++ b/frontend/components/ChampionSelector.vue @@ -19,7 +19,6 @@ const lanesMap = new Map() for(let champion of championsLanes.value) { lanesMap.set(champion.alias, champion.lanes) } -console.log(lanesMap) const filteredChampions = ref(champions) @@ -53,7 +52,7 @@ function onLaneFilterChange(newValue: number) { filteredChampions.value = champions.filter((champion) => { const lanes : Array = lanesMap.get(champion.alias.toLowerCase()) if(lanes == undefined) return false; - + return lanes.reduce((acc : boolean, current : {data:string, count:number}) => acc || (current.data == filterToLane(newValue)), false) })