Skip to content

Commit d495c0b

Browse files
committed
Fix slot session dep
1 parent 0aa811f commit d495c0b

File tree

1 file changed

+2
-2
lines changed
  • packages/keychain/src/pages/slot/session

1 file changed

+2
-2
lines changed

packages/keychain/src/pages/slot/session/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function CreateSession() {
4444
headers.append("Content-Type", "application/json");
4545

4646
fetch(url, {
47-
body: session,
47+
body: JSON.stringify(session),
4848
headers,
4949
method: "POST",
5050
})
@@ -57,7 +57,7 @@ function CreateSession() {
5757
console.error("failed to call the callback url", e);
5858
router.replace(`/slot/auth/failure`);
5959
});
60-
}, [router, queries.callback_uri, controller.account]);
60+
}, [router, queries.callback_uri, controller]);
6161

6262
// Handler when user clicks the Create button
6363
const onConnect = useCallback(

0 commit comments

Comments
 (0)