Skip to content

Commit

Permalink
Refactor Set Import Message
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinXII committed Jul 2, 2024
1 parent 8786054 commit 3a174b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/moveset_import.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,10 @@ function addSets(pokes, name) {
}
}
}
if (addedpokes > 0) {
if (addedpokes == 1) {
alert("Successfully imported 1 set");
$(allPokemon("#importedSetsOptions")).css("display", "inline");
} else if (addedpokes > 1) {
alert("Successfully imported " + addedpokes + " set(s)");
$(allPokemon("#importedSetsOptions")).css("display", "inline");
} else {
Expand Down

0 comments on commit 3a174b6

Please sign in to comment.