diff --git a/client/components/GameProvider.tsx b/client/components/GameProvider.tsx index 4b3a432..2df79ab 100644 --- a/client/components/GameProvider.tsx +++ b/client/components/GameProvider.tsx @@ -40,7 +40,7 @@ export default function GameProvider({ children }: { children: ReactNode }) { const trainsQuery = useQuery({ queryKey: ['get-trains', game.playerId, auth.token], - queryFn: () => fetch(`${process.env.EXPO_PUBLIC_TRAINTRAPE_MOI_SERVER}/trains/?playerId=${game.playerId}`, { + queryFn: () => fetch(`${process.env.EXPO_PUBLIC_TRAINTRAPE_MOI_SERVER}/trains/?playerId=${game.playerId}&size=10000`, { headers: { "Authorization": `Bearer ${auth.token}` }} ).then(resp => resp.json()), enabled: isAuthValid(auth) && !game.playerId,