Skip to content

Commit 5a4e237

Browse files
authored
Merge pull request #363 from WatWowMap/minor-pokemon-popup-fixes
Minor Popup Adjustments
2 parents 701fb47 + 3c098f4 commit 5a4e237

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: static/css/popups.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
}
6767

6868
.pokemon-despawn-timers {
69-
grid-column: 1;
69+
grid-column: 2;
7070
grid-row: 5;
7171
margin: auto;
7272
padding: 5px;
@@ -89,7 +89,7 @@
8989
}
9090

9191
.pokemon-other-timers {
92-
grid-column: 2;
92+
grid-column: 1;
9393
grid-row: 5;
9494
margin: auto;
9595
padding: 5px;

Diff for: static/js/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3077,7 +3077,7 @@ const getPokemonPopupContent = (pokemon) => {
30773077
}
30783078

30793079
const getIV = (pokemon) => {
3080-
if (pokemon.atk_iv !== null && popupDetails.pokemon.iv) {
3080+
if (pokemon.atk_iv !== null && pokemon.atk_iv !== undefined && popupDetails.pokemon.iv) {
30813081
const ivColors = { 0: 'red', 66: 'orange', 82: 'yellow', 100: 'green' }
30823082
const ivPercent = ((pokemon.atk_iv + pokemon.def_iv + pokemon.sta_iv) / .45).toFixed(2);
30833083
let selectedColor

0 commit comments

Comments
 (0)