Skip to content

Commit 3c098f4

Browse files
committed
Minor Popup Adjustments
- Users were complaining that despawn timers felt less visible since they're on the left when all of the other "important" info is on the right, so this swaps the despawn timer with the first/last seen timers. - Fix IVs from incorrectly calculating/displaying null values for users without IV perms
1 parent f57e26a commit 3c098f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

static/css/popups.css

Lines changed: 2 additions & 2 deletions
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;

static/js/index.js

Lines changed: 1 addition & 1 deletion
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)