Skip to content

Commit 3a174b6

Browse files
committed
Refactor Set Import Message
1 parent 8786054 commit 3a174b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/js/moveset_import.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,10 @@ function addSets(pokes, name) {
303303
}
304304
}
305305
}
306-
if (addedpokes > 0) {
306+
if (addedpokes == 1) {
307+
alert("Successfully imported 1 set");
308+
$(allPokemon("#importedSetsOptions")).css("display", "inline");
309+
} else if (addedpokes > 1) {
307310
alert("Successfully imported " + addedpokes + " set(s)");
308311
$(allPokemon("#importedSetsOptions")).css("display", "inline");
309312
} else {

0 commit comments

Comments
 (0)