Skip to content

Commit 5944452

Browse files
committed
fix: weather icon uses wrong time of day for wild
1 parent 6b8545c commit 5944452

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/features/pokemon/PokemonPopup.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,9 +576,8 @@ const Info = ({ pokemon, metaData, perms, timeOfDay, backgroundVisuals }) => {
576576
const darkMode = useStorage((s) => s.darkMode)
577577
const iconStyles = backgroundVisuals?.styles?.icon
578578
const hasBackground = Boolean(backgroundVisuals?.hasBackground)
579-
const weatherIconTimeOfDay = hasBackground ? 'night' : timeOfDay
580-
const weatherIconUrl =
581-
Icons?.getWeather?.(weather, weatherIconTimeOfDay) || ''
579+
const weatherIconUrl = Icons?.getWeather?.(weather, timeOfDay) || ''
580+
const weatherIconColor = backgroundVisuals?.primaryColor || '#fff'
582581
return (
583582
<Grid
584583
xs={perms.iv ? 3 : 11}
@@ -614,7 +613,7 @@ const Info = ({ pokemon, metaData, perms, timeOfDay, backgroundVisuals }) => {
614613
maskPosition: 'center',
615614
WebkitMaskSize: 'contain',
616615
maskSize: 'contain',
617-
backgroundColor: '#fff',
616+
backgroundColor: weatherIconColor,
618617
}
619618
: {
620619
backgroundImage: `url(${weatherIconUrl})`,

0 commit comments

Comments
 (0)