Skip to content

Commit

Permalink
Storage: Ensure teams of nonstandard length don't duplicate on load
Browse files Browse the repository at this point in the history
  • Loading branch information
mia-pi-git committed Nov 6, 2023
1 parent 51a285c commit fb049be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ Storage.compareTeams = function (serverTeam, localTeam) {
for (var j = 0; j < otherMons.length; j++) {
if (toID(otherMons[j].species) === toID(mons[i])) {
matches++;
break;
}
}
}
Expand Down

0 comments on commit fb049be

Please sign in to comment.