Handle null userIds

This commit is contained in:
Yarmo Mackenbach 2020-12-26 23:48:17 +01:00
parent 340c8dbd07
commit d2fce497a2

View file

@ -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;
}