Skip to content

Commit

Permalink
fix(loadout): fix learned skills replacing old skills
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Mar 9, 2023
1 parent 2152f80 commit 3e1d352
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class LoadoutPage implements OnInit, OnDestroy {

// replace the older skill with the newer one
if(replaces) {
currentlyLearnedSkills = currentlyLearnedSkills.filter(learnedSkill => learnedSkill.name === replaces);
currentlyLearnedSkills = currentlyLearnedSkills.filter(learnedSkill => learnedSkill.name !== replaces);
}

// replace any copies of this skill
Expand Down

0 comments on commit 3e1d352

Please sign in to comment.