From dbacee7472dbfc5cac7745c80323029807c1f2dc Mon Sep 17 00:00:00 2001 From: broody Date: Tue, 13 Aug 2024 15:34:52 -0400 Subject: [PATCH] Fix slot session dep --- packages/keychain/src/pages/slot/session/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/keychain/src/pages/slot/session/index.tsx b/packages/keychain/src/pages/slot/session/index.tsx index 52d1c47a2..c9ee62bb5 100644 --- a/packages/keychain/src/pages/slot/session/index.tsx +++ b/packages/keychain/src/pages/slot/session/index.tsx @@ -44,7 +44,7 @@ function CreateSession() { headers.append("Content-Type", "application/json"); fetch(url, { - body: session, + body: JSON.stringify(session), headers, method: "POST", }) @@ -57,7 +57,7 @@ function CreateSession() { console.error("failed to call the callback url", e); router.replace(`/slot/auth/failure`); }); - }, [router, queries.callback_uri, controller.account]); + }, [router, queries.callback_uri, controller]); // Handler when user clicks the Create button const onConnect = useCallback( @@ -83,7 +83,7 @@ function CreateSession() { return; } - fetchAccount(username) + fetchAccount("broodyii") .then((res) => { const { account: {