From d73c3944db7542f12c6affa3634ba222789cae6a Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 10 Sep 2020 11:36:41 +0200 Subject: [PATCH] Fix handling of keys without selfCertifications --- static/scripts.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/scripts.js b/static/scripts.js index 9ca83b3..f410441 100644 --- a/static/scripts.js +++ b/static/scripts.js @@ -252,6 +252,8 @@ async function displayProfile(opts) { let notations = [], notationsRaw = []; for (var i = 0; i < keyData.publicKey.users.length; i++) { + if (keyData.publicKey.users[i].selfCertifications.length == 0) { continue; } + notationsRaw = notationsRaw.concat(keyData.publicKey.users[i].selfCertifications[0].notations); if (keyData.publicKey.users[i].userAttribute != null && keyData.publicKey.users[i].userAttribute.attributes[0][0] === String.fromCharCode(1)) {