Hide proofs if none present

This commit is contained in:
Yarmo Mackenbach 2020-06-29 11:07:23 +02:00
parent d8952c8ea3
commit a504e8fd9d

View file

@ -213,6 +213,7 @@ async function displayProfile(opts) {
feedback += `<div class="profileDataItem__value"><a href="https://keys.openpgp.org/pks/lookup?op=get&options=mr&search=0x${keyData.fingerprint}">${keyData.fingerprint}</a></div>`;
feedback += `</div>`;
if (verifications.length > 0) {
feedback += `<div class="profileDataItem profileDataItem--separator profileDataItem--noLabel">`;
feedback += `<div class="profileDataItem__label"></div>`;
feedback += `<div class="profileDataItem__value">proofs</div>`;
@ -231,6 +232,7 @@ async function displayProfile(opts) {
feedback += `</div>`;
feedback += `</div>`;
}
}
feedback += `<div class="profileDataItem profileDataItem--separator profileDataItem--noLabel">`;
feedback += `<div class="profileDataItem__label"></div>`;