fix: avoid duplicate profile refresh events

This commit is contained in:
Saravana Achu Mac 2026-05-04 17:38:22 -07:00
parent 41c5d0f8bd
commit a0476c39a6

View File

@ -97,7 +97,6 @@ function App() {
try {
await createTradeProfile(payload);
fetchChatProfiles();
window.dispatchEvent(new Event('profiles-updated'));
return { success: true };
} catch (err: any) {
return { success: false, error: err.message };
@ -107,7 +106,6 @@ function App() {
try {
await updateTradeProfile(profileData.id, payload);
fetchChatProfiles();
window.dispatchEvent(new Event('profiles-updated'));
return { success: true };
} catch (err: any) {
return { success: false, error: err.message };