Fix doubled encounters in encounter modals by filtering on gameId

EncounterModal and ShinyEncounterModal were calling useRoutePokemon
without a gameId, returning encounters for all games in the version
group. Now both receive and pass the run's gameId to scope results
to the current game only.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-08 12:18:12 +01:00
parent 3e88ba50fa
commit da9cf0acd2
4 changed files with 22 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
---
# nuzlocke-tracker-jrbc
title: Fix doubled encounters in EncounterModal
status: completed
type: bug
priority: normal
created_at: 2026-02-08T11:16:35Z
updated_at: 2026-02-08T11:17:25Z
---
EncounterModal calls useRoutePokemon without gameId, so route encounters for all games in the version group are returned. Pass gameId through from RunEncounters.