From be85da22ad64d06c7fd02e1384b4b0478a8925ec Mon Sep 17 00:00:00 2001 From: Mygod Date: Mon, 18 Nov 2024 15:33:15 -0800 Subject: [PATCH] fix: no pokemon icon marker if it is not available --- src/features/station/useStationMarker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/station/useStationMarker.js b/src/features/station/useStationMarker.js index 3f9bfd84f..97fbd9270 100644 --- a/src/features/station/useStationMarker.js +++ b/src/features/station/useStationMarker.js @@ -48,7 +48,7 @@ export function useStationMarker({ }, basicEqualFn) const [stationMod, battleMod] = Icons.getModifiers('station', 'dynamax') const opacity = useOpacity('stations')(end_time) - const isActive = start_time < Date.now() / 1000 + const isActive = !!battle_pokemon_id && start_time < Date.now() / 1000 return divIcon({ popupAnchor: [