Skip to content

Commit

Permalink
Skip CreateSession if no policy provided
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura committed Aug 16, 2024
1 parent 108effe commit 2cea4df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/keychain/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2cea4df

Please sign in to comment.