diff --git a/packages/locales/lib/human/de.json b/packages/locales/lib/human/de.json index 4236f43d5..8abf204db 100644 --- a/packages/locales/lib/human/de.json +++ b/packages/locales/lib/human/de.json @@ -478,6 +478,7 @@ "with_ar": "Mit AR", "without_ar": "Ohne AR", "both": "Beide", + "shiny_probability": "Shinyrate: {{p}}", "badge_0": "keiner", "badge_1": "Basis", "badge_2": "Bronze", diff --git a/src/features/pokestop/PokestopPopup.jsx b/src/features/pokestop/PokestopPopup.jsx index 747cde9c4..80810761d 100644 --- a/src/features/pokestop/PokestopPopup.jsx +++ b/src/features/pokestop/PokestopPopup.jsx @@ -129,7 +129,7 @@ export function PokestopPopup({ }} > - {quest.quest_shiny_probability && ( + {!!quest.quest_shiny_probability && ( <>
@@ -538,7 +538,7 @@ const readableProbability = (x) => { const x_1 = Math.round(1 / x) const percent = Math.round(x * 100) return Math.abs(1 / x_1 - x) < Math.abs(percent * 0.01 - x) - ? `1/${x_1}` + ? `1:${x_1}` : `${percent}%` }