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 843ff17
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/js/moveset_import.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,11 @@ function addSets(pokes, name) {
}
}
}
if (addedpokes > 0) {
alert("Successfully imported " + addedpokes + " set(s)");
if (addedpokes == 1) {
alert("Successfully imported 1 set");
$(allPokemon("#importedSetsOptions")).css("display", "inline");
} else if (addedpokes > 1) {
alert("Successfully imported " + addedpokes + " sets");
$(allPokemon("#importedSetsOptions")).css("display", "inline");
} else {
alert("No sets imported, please check your syntax and try again");
Expand Down

0 comments on commit 843ff17

Please sign in to comment.