refactor: update agent profile fetch to use getMyProfile method

This commit is contained in:
pradeepkumar
2026-03-31 23:49:52 +05:30
parent 719404b663
commit a5f8f33d68

View File

@@ -305,7 +305,7 @@ export default function AgentDashboard() {
}
// Also re-fetch profile to confirm
try {
const freshProfile = await agentsService.getProfile();
const freshProfile = await agentsService.getMyProfile();
setAgentProfile(freshProfile);
} catch {
// Local state already updated