Skip to content

Commit

Permalink
Fix shorthand check on user revoked status in getPrimaryUser method (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
toberndo committed Apr 4, 2023
1 parent e63ab3d commit ac223bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/key/key.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ class Key {
throw exception || new Error('Could not find primary user');
}
await Promise.all(users.map(async function (a) {
return a.user.revoked || a.user.isRevoked(a.selfCertification, null, date, config);
return a.selfCertification.revoked || a.user.isRevoked(a.selfCertification, null, date, config);
}));
// sort by primary user flag and signature creation time
const primaryUser = users.sort(function(a, b) {
Expand Down

0 comments on commit ac223bb

Please sign in to comment.