bug fix and minor UI tweaks

This commit is contained in:
sairaj mote 2022-11-18 00:27:17 +05:30
parent 5fea7e804f
commit 81871a93ae

View File

@ -231,8 +231,8 @@
<sm-spinner></sm-spinner> <sm-spinner></sm-spinner>
</div> </div>
<p> <p>
Checking whether certificate issued by <strong>Authorized Blockchain Issuer ID Checking whether certificate <strong>issued by Authorized Blockchain Issuer ID</strong>
FFCpiaZi31TpbYw5q5VNk8qJMeDiTLgsrE</strong> FFCpiaZi31TpbYw5q5VNk8qJMeDiTLgsrE
</p> </p>
</div> </div>
<div class="step"> <div class="step">
@ -240,9 +240,8 @@
<sm-spinner></sm-spinner> <sm-spinner></sm-spinner>
</div> </div>
<p> <p>
Checking whether certificate was <strong>correctly sent to approved Blockchain ID Checking whether certificate was <strong>correctly sent to approved Blockchain ID</strong>
FKNW5eCCp2SnJMJ6pLLpUCvk5hAage8Jtk</strong>, or FKNW5eCCp2SnJMJ6pLLpUCvk5hAage8Jtk, or FDaX363r1ooANA9A2erhehhigNTnidq3o4
<strong>FDaX363r1ooANA9A2erhehhigNTnidq3o4</strong>
</p> </p>
</div> </div>
<div class="step"> <div class="step">
@ -250,7 +249,7 @@
<sm-spinner></sm-spinner> <sm-spinner></sm-spinner>
</div> </div>
<p> <p>
Checking whether blockchain data <strong>starts with</strong> CERTIFICATE OF INTERNSHIP, and Checking whether <strong>blockchain data starts with CERTIFICATE OF INTERNSHIP</strong>, and
verification link has verification link has
those words those words
</p> </p>
@ -278,6 +277,7 @@
floBlockchainAPI.getBalance(floCrypto.generateNewID().floID).then(r => { floBlockchainAPI.getBalance(floCrypto.generateNewID().floID).then(r => {
const [key, value] = window.location.search.substring(1).split('=') const [key, value] = window.location.search.substring(1).split('=')
console.log(key, value) console.log(key, value)
if (key === '' && !value) throw new Error("No verification ID found")
switch (key) { switch (key) {
case "internCertificate": case "internCertificate":
verifyCertificate(value, "RIBC certificate", "CERTIFICATE OF INTERNSHIP"); verifyCertificate(value, "RIBC certificate", "CERTIFICATE OF INTERNSHIP");
@ -295,7 +295,7 @@
} }
}).catch(e => { }).catch(e => {
console.error(e) console.error(e)
showVerificationStatus('error') showVerificationStatus('error', e.message)
}) })
} }