diff --git a/src/pages/my-performance.tsx b/src/pages/my-performance.tsx index f007103..422ed1d 100644 --- a/src/pages/my-performance.tsx +++ b/src/pages/my-performance.tsx @@ -83,7 +83,9 @@ export const MyPerformancePage = () => { useEffect(() => { setLoading(true); - apiClient.get(`/api/ozonetel/performance?date=${selectedDate}`, { silent: true }) + const agentCfg = JSON.parse(localStorage.getItem('helix_agent_config') ?? '{}'); + const agentId = agentCfg.ozonetelAgentId ?? ''; + apiClient.get(`/api/ozonetel/performance?date=${selectedDate}&agentId=${agentId}`, { silent: true }) .then(setData) .catch(() => setData(null)) .finally(() => setLoading(false));