From 0e98e57e540ed219cb25895b85052f004a0f2a1a Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 28 Jun 2020 13:57:31 +0200 Subject: [PATCH] Fix unknown verification skip --- assets/scripts.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 += `

proofs
`; feedback += ``; for (var i = 0; i < verifications.length; i++) { - if (!verifications[i].type) { continue; } + // if (!verifications[i].type) { continue; } feedback += `
`; feedback += `
${verifications[i].type}
`; feedback += `
`;