Skip unknown verifications

This commit is contained in:
Yarmo Mackenbach 2020-06-28 13:55:45 +02:00
parent ea5cddbf66
commit cfc0f59fa4

View file

@ -161,7 +161,7 @@ async function verifyProofs(opts) {
// Generate feedback
feedback += `<p>`;
for (var i = 0; i < verifications.length; i++) {
// feedback += `${verifications[i].type}: <a href="${verifications[i].url}">${verifications[i].display}</a>: ${verifications[i].isVerified}<br>`;
if (!verifications[i].type) { continue; }
feedback += `${verifications[i].type}: `;
feedback += `<a class="proofDisplay" href="${verifications[i].url}">${verifications[i].display}</a>`;
if (verifications[i].isVerified) {