Skip to content

Commit 12e6512

Browse files
committed
fix: showcase icon missing when invasion blocked
1 parent 18cc560 commit 12e6512

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/features/pokestop/usePokestopMarker.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ export function usePokestopMarker({
7878
const questSizes = []
7979
const showcaseIcons = []
8080
const showcaseSizes = []
81+
const canShowInvasionIcons = hasInvasion && !hasShowcase
8182

82-
if (hasInvasion && !hasShowcase) {
83+
if (canShowInvasionIcons) {
8384
invasions.forEach((invasion) => {
8485
if (invasion.grunt_type) {
8586
invasionIcons.unshift({
@@ -347,7 +348,7 @@ export function usePokestopMarker({
347348
popupY += rewardMod.popupY
348349
})
349350
}
350-
if (hasEvent && !hasInvasion && !hasQuest) {
351+
if (hasEvent && !canShowInvasionIcons && !hasQuest) {
351352
events.forEach((event) => {
352353
if (event.display_type === 8) {
353354
// Only show Kecleon if there's no active showcase blocking it

0 commit comments

Comments
 (0)