From a0476c39a69a55417a6e2aac78ea1d292ba34c70 Mon Sep 17 00:00:00 2001 From: Saravana Achu Mac Date: Mon, 4 May 2026 17:38:22 -0700 Subject: [PATCH] fix: avoid duplicate profile refresh events --- web/src/App.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index 312fcf8..607fd68 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -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 };