From d878cb8735173e57c099cb12f595269860545334 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 2 Jul 2020 09:13:22 +0200 Subject: [PATCH] Handle empty email --- assets/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scripts.js b/assets/scripts.js index a2fbcb4..7e4e1ea 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -215,7 +215,7 @@ async function displayProfile(opts) { feedback += `
general information
`; feedback += ``; for (var i = 0; i < keyData.publicKey.users.length; i++) { - if (keyData.publicKey.users[i].userId && 'email' in keyData.publicKey.users[i].userId) { + if (keyData.publicKey.users[i].userId && 'email' in keyData.publicKey.users[i].userId && keyData.publicKey.users[i].userId.email) { feedback += `
`; feedback += `
email
`; feedback += ``;