From 4ec1ecda5b851dced0969bde5b1c7e9e3f56cd03 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 27 Jun 2020 14:59:48 +0200 Subject: [PATCH] Improve display of proofs --- assets/scripts.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/assets/scripts.js b/assets/scripts.js index d6afaf5..b1df458 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -159,9 +159,19 @@ async function verifyProofs(opts) { } // Generate feedback + feedback += `

`; for (var i = 0; i < verifications.length; i++) { - feedback += `${verifications[i].type}: ${verifications[i].display}: ${verifications[i].isVerified}
`; + // feedback += `${verifications[i].type}: ${verifications[i].display}: ${verifications[i].isVerified}
`; + feedback += `${verifications[i].type}: `; + feedback += `${verifications[i].display}`; + if (verifications[i].isVerified) { + feedback += `verified ✔`; + } else { + feedback += `proof`; + } + feedback += `
`; } + feedback += `

`; // Display feedback elRes.innerHTML = feedback;