From f47001a41e1b01c2cd69c14749a14242fef27dd0 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 2 Jul 2020 09:11:38 +0200 Subject: [PATCH] Handle user identities without userId or email --- assets/scripts.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/assets/scripts.js b/assets/scripts.js index e98be5e..a2fbcb4 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -215,10 +215,12 @@ async function displayProfile(opts) { feedback += `
general information
`; feedback += ``; for (var i = 0; i < keyData.publicKey.users.length; i++) { - feedback += `
`; - feedback += `
email
`; - feedback += ``; - feedback += `
`; + if (keyData.publicKey.users[i].userId && 'email' in keyData.publicKey.users[i].userId) { + feedback += `
`; + feedback += `
email
`; + feedback += ``; + feedback += `
`; + } } feedback += `
`; feedback += `
fingerprint
`;