Fix pool selection

This commit is contained in:
Daniel Rodriguez 2021-09-21 13:41:22 +02:00
parent 5f941efa38
commit 2e4d34599f

View file

@ -152,11 +152,10 @@ export class PoolService {
* Update role pool * Update role pool
*/ */
updatePool() { updatePool() {
let pool = []; this.rolesPool = [];
this.championsPool.forEach(champion => { this.championsPool.forEach(champion => {
pool = _.union(this.rolesPool, champion.roles); this.rolesPool = _.union(this.rolesPool, champion.roles);
}); });
this.rolesPool = pool;
} }
/** /**