Skip to content

Commit

Permalink
fix: comparison method
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Sep 2, 2024
1 parent 273e11a commit 9485fae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,9 @@ export class Signer {
this.savePermissions({scopes: confirmedScopes});

const approved =
confirmedScopes.find(({scope: {method}, state}) => method && state === 'granted') !==
undefined;
confirmedScopes.find(
({scope: {method: m}, state}) => m === method && state === 'granted'
) !== undefined;

if (approved) {
resolve('granted');
Expand Down

0 comments on commit 9485fae

Please sign in to comment.