refactor: update agent profile fetch to use getMyProfile method
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user