fix: avoid duplicate profile refresh events
This commit is contained in:
parent
41c5d0f8bd
commit
a0476c39a6
@ -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 };
|
||||
|
||||
Loading…
Reference in New Issue
Block a user