Skip to content

Commit

Permalink
chore: remove router navigate
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Aug 25, 2024
1 parent 95fc551 commit b6ec88b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/keychain/src/pages/session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ export default function CreateRemoteSession() {

const { controller, policies, origin } = useConnection();

const navigateBackHere = useCallback(() => {
router.replace({
pathname: "/session",
query: router.query,
});
}, [router]);

// Handler for calling the callback uri.
// Send the session details to the callback uri in the body of the
// POST request. If the request is successful, then redirect to the
Expand Down Expand Up @@ -120,10 +113,7 @@ export default function CreateRemoteSession() {
return controller ? (
<CreateSessionComp onConnect={onConnect} />
) : (
<CreateController
loginMode={LoginMode.Controller}
onCreated={navigateBackHere}
/>
<CreateController loginMode={LoginMode.Controller} />
);
}

Expand Down

0 comments on commit b6ec88b

Please sign in to comment.