Remove useless logging

This commit is contained in:
2024-11-28 18:16:05 +01:00
parent b657f3bb88
commit faa17e87c9

View File

@@ -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<any> = 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)
})