From a1598716eecc3346317f730ee8baa52ced90a96f Mon Sep 17 00:00:00 2001 From: saridsa2 Date: Fri, 10 Apr 2026 19:34:00 +0530 Subject: [PATCH] fix: #536 My Performance passes agentId to performance endpoint Co-Authored-By: Claude Opus 4.6 (1M context) --- src/pages/my-performance.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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));