diff --git a/assets/scripts.js b/assets/scripts.js index 17adcc8..4bccafe 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -213,23 +213,25 @@ async function displayProfile(opts) { feedback += `
${keyData.fingerprint}
`; feedback += ``; - feedback += `
`; - feedback += `
`; - feedback += `
proofs
`; - feedback += `
`; - for (var i = 0; i < verifications.length; i++) { - if (!verifications[i].type) { continue; } - feedback += `
`; - feedback += `
${verifications[i].type}
`; - feedback += `
`; - feedback += `${verifications[i].display}`; - if (verifications[i].isVerified) { - feedback += `verified ✔`; - } else { - feedback += `proof`; + if (verifications.length > 0) { + feedback += `
`; + feedback += `
`; + feedback += `
proofs
`; + feedback += `
`; + for (var i = 0; i < verifications.length; i++) { + if (!verifications[i].type) { continue; } + feedback += `
`; + feedback += `
${verifications[i].type}
`; + feedback += `
`; + feedback += `${verifications[i].display}`; + if (verifications[i].isVerified) { + feedback += `verified ✔`; + } else { + feedback += `proof`; + } + feedback += `
`; + feedback += `
`; } - feedback += `
`; - feedback += `
`; } feedback += `
`;