Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
chore: don't dispatch event for store apps
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Jun 4, 2024
1 parent f85d217 commit 3e064a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/screens/apps/AppCreated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {} });
Expand All @@ -73,7 +76,7 @@ export default function AppCreated() {
"*"
);
}
}, []);
}, [appstoreApp]);

if (!createAppResponse) {
return <Navigate to="/apps/new" />;
Expand Down

0 comments on commit 3e064a8

Please sign in to comment.