diff --git a/src/keys.js b/src/keys.js index bb62e4a..12ee7d0 100644 --- a/src/keys.js +++ b/src/keys.js @@ -283,7 +283,7 @@ const process = async (publicKey) => { } if ('selfCertifications' in user && user.selfCertifications.length > 0) { - const selfCertification = user.selfCertifications[0] + const selfCertification = user.selfCertifications.sort((e1, e2) => e2.created - e1.created)[0] const notations = selfCertification.rawNotations usersOutput[i].claims = notations