forked from Mirrors/keyoxide-web
Prevent null proofs from displaying
This commit is contained in:
parent
0dacc5acc3
commit
0783731d47
1 changed files with 4 additions and 1 deletions
|
@ -313,10 +313,13 @@ async function displayProfile(opts) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify identity proofs
|
// Verify identity proofs
|
||||||
|
let proofResult;
|
||||||
for (var i = 0; i < keyData.notations.length; i++) {
|
for (var i = 0; i < keyData.notations.length; i++) {
|
||||||
notation = keyData.notations[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));
|
proofResult = await verifyProof(notation[1], keyData.fingerprint);
|
||||||
|
if (!proofResult || !proofResult.display) { continue; }
|
||||||
|
verifications.push(proofResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
// One-line sorting function (order verifications by type)
|
// One-line sorting function (order verifications by type)
|
||||||
|
|
Loading…
Reference in a new issue