From 2cea4dfb48d47014ff05496eaeec6a9992ccf56f Mon Sep 17 00:00:00 2001 From: JunichiSugiura Date: Fri, 16 Aug 2024 17:07:18 +0200 Subject: [PATCH] Skip CreateSession if no policy provided --- packages/keychain/src/pages/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/keychain/src/pages/index.tsx b/packages/keychain/src/pages/index.tsx index e28065414..97b04810d 100644 --- a/packages/keychain/src/pages/index.tsx +++ b/packages/keychain/src/pages/index.tsx @@ -40,7 +40,7 @@ function Home() { switch (context.type) { case "connect": { // TODO: show missing policies if mismatch - if (controller.account.sessionJson()) { + if (!context.policies.length || controller.account.sessionJson()) { context.resolve({ code: ResponseCodes.SUCCESS, address: controller.address,