Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
How embarrassing..
  • Loading branch information
thejetou committed Dec 18, 2023
1 parent 11929b7 commit f8a499d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/shared_controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ $(".teraType").change(function () {
var pokeObj = $(this).closest(".poke-info");
var checked = pokeObj.find(".teraToggle").prop("checked");
stellarButtonsVisibility(pokeObj, $(this).val() === "Stellar" && checked);
})
});

var lockerMove = "";
// auto-update move details on select
Expand Down Expand Up @@ -556,7 +556,7 @@ $(".set-selector").change(function () {
var pokeObj = $(this).closest(".poke-info");
var isAutoTera =
(startsWith(pokemonName, "Ogerpon") && endsWith(pokemonName, "Tera")) ||
pokemonName === 'Terapagos-Stellar'
pokemonName === 'Terapagos-Stellar';
if (stickyMoves.getSelectedSide() === pokeObj.prop("id")) {
stickyMoves.clearStickyMove();
}
Expand Down Expand Up @@ -781,14 +781,14 @@ function stellarButtonsVisibility(pokeObj, vis) {
pokeObj.find(".move4")
];
if (vis && !startsWith(pokemonName, 'Terapagos')) {
for (let i = 0; i < moveObjs.length; i++) {
for (var i = 0; i < moveObjs.length; i++) {
var moveObj = moveObjs[i];
moveObj.find(".move-stellar").prop("checked", true);
moveObj.find(".stellar-btn").show();
}
return;
}
for (let i = 0; i < moveObjs.length; i++) {
for (var i = 0; i < moveObjs.length; i++) {
var moveObj = moveObjs[i];
moveObj.find(".move-stellar").prop("checked", false);
moveObj.find(".stellar-btn").hide();
Expand Down

0 comments on commit f8a499d

Please sign in to comment.