diff --git a/assets/scripts.js b/assets/scripts.js index e1979c6..8368991 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -154,14 +154,14 @@ async function verifyProofs(opts) { let notation, isVerified, verifications = []; for (var i = 0; i < keyData.notations.length; i++) { notation = keyData.notations[i]; - if (notation[0] == "proof@metacode.biz") { continue; } + if (notation[0] != "proof@metacode.biz") { continue; } verifications.push(await verifyProof(notation[1], keyData.fingerprint)); } // Generate feedback feedback += `
`; for (var i = 0; i < verifications.length; i++) { - if (!verifications[i].type) { continue; } + // if (verifications[i].type == "null") { continue; } feedback += `${verifications[i].type}: `; feedback += `${verifications[i].display}`; if (verifications[i].isVerified) { @@ -187,7 +187,7 @@ async function displayProfile(opts) { for (var i = 0; i < keyData.notations.length; i++) { notation = keyData.notations[i]; - if (notation[0] == "proof@metacode.biz") { continue; } + if (notation[0] != "proof@metacode.biz") { continue; } verifications.push(await verifyProof(notation[1], keyData.fingerprint)); } @@ -212,7 +212,7 @@ async function displayProfile(opts) { feedback += `