forked from Mirrors/keyoxide-web
Handle null userIds
This commit is contained in:
parent
340c8dbd07
commit
d2fce497a2
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue