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 += `
${keyData.publicKey.users[i].userId.email}
`; - feedback += `
`; + if (keyData.publicKey.users[i].userId && 'email' in keyData.publicKey.users[i].userId) { + feedback += `
`; + feedback += `
email
`; + feedback += `
${keyData.publicKey.users[i].userId.email}
`; + feedback += `
`; + } } feedback += `
`; feedback += `
fingerprint
`;