Fix wrong email query

This commit is contained in:
Yarmo Mackenbach 2020-07-31 00:09:27 +02:00
parent 6d364219a2
commit 6eb43b0f90

View file

@ -234,7 +234,7 @@ async function displayProfile(opts) {
return; return;
} }
let userData = keyData.user.user.userId; let userData = keyData.user.user.userId;
let userName = userData.name ? userData.name : keyData.publicKey.users[i].userId.email; let userName = userData.name ? userData.name : userData.email;
// Determine WKD or HKP link // Determine WKD or HKP link
switch (opts.mode) { switch (opts.mode) {