refactor: update agent profile fetch to use getMyProfile method

This commit is contained in:
pradeepkumar committed 2026-03-31 23:49:52 +05:30
1 parent 719404b663
commit a5f8f33d68
1 file changed
+1 -1
+1 -1
View File
@@ -305,7 +305,7 @@ export default function AgentDashboard() {
} }
// Also re-fetch profile to confirm // Also re-fetch profile to confirm
try { try {
const freshProfile = await agentsService.getProfile(); const freshProfile = await agentsService.getMyProfile();
setAgentProfile(freshProfile); setAgentProfile(freshProfile);
} catch { } catch {
// Local state already updated // Local state already updated