From d2fce497a2f7124467e96c33f669fdb136a23c91 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 26 Dec 2020 23:48:17 +0100 Subject: [PATCH] Handle null userIds --- static/scripts.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/scripts.js b/static/scripts.js index 0dfc93f..a740527 100644 --- a/static/scripts.js +++ b/static/scripts.js @@ -362,6 +362,12 @@ async function displayProfile(opts) { feedback = ""; if (userMail) { verifications.forEach((userId, i) => { + if (!keyData.users[i].userId) { + keyData.users[i].userId = { + email: 'email not specified' + } + } + if (keyData.users[i].userId.email != userMail) { return; }