From aecda8aec7961244e8747625cb0dbaf60d858f43 Mon Sep 17 00:00:00 2001 From: ReuschelCGN <82573872+ReuschelCGN@users.noreply.github.com> Date: Fri, 14 Mar 2025 13:42:14 +0100 Subject: [PATCH 1/2] Update de.json --- packages/locales/lib/human/de.json | 1 + 1 file changed, 1 insertion(+) 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", From 3059f3693ed415291b0cd071a0aa2bc250c74763 Mon Sep 17 00:00:00 2001 From: ReuschelCGN <82573872+ReuschelCGN@users.noreply.github.com> Date: Fri, 14 Mar 2025 13:44:12 +0100 Subject: [PATCH 2/2] fix PokestopPopup.jsx --- src/features/pokestop/PokestopPopup.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}%` }