feat: Dispatch 'profile-updated' event after avatar update to trigger UI refresh.
This commit is contained in:
@@ -206,6 +206,9 @@ export default function AgentDashboard() {
|
|||||||
console.error('Failed to get presigned URL for new avatar:', err);
|
console.error('Failed to get presigned URL for new avatar:', err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify header and other components to refresh avatar
|
||||||
|
window.dispatchEvent(new Event('profile-updated'));
|
||||||
};
|
};
|
||||||
|
|
||||||
const getProfileImageUrl = () => {
|
const getProfileImageUrl = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user