diff --git a/frontend/src/screens/apps/AppCreated.tsx b/frontend/src/screens/apps/AppCreated.tsx index e2643ab7..79f0ec8f 100644 --- a/frontend/src/screens/apps/AppCreated.tsx +++ b/frontend/src/screens/apps/AppCreated.tsx @@ -58,6 +58,9 @@ export default function AppCreated() { }, [app?.lastEventAt, navigate, toast]); useEffect(() => { + if (appstoreApp) { + return; + } // dispatch a success event which can be listened to by the opener or by the app that embedded the webview // this gives those apps the chance to know the user has enabled the connection const nwcEvent = new CustomEvent("nwc:success", { detail: {} }); @@ -73,7 +76,7 @@ export default function AppCreated() { "*" ); } - }, []); + }, [appstoreApp]); if (!createAppResponse) { return ;