forked from Mirrors/keyoxide-web
Prevent code execution if no notations present
This commit is contained in:
parent
2edf20f027
commit
956b9501f6
1 changed files with 5 additions and 0 deletions
|
@ -296,6 +296,11 @@ async function displayProfile(opts) {
|
||||||
// Display feedback
|
// Display feedback
|
||||||
document.body.querySelector('#profileData').innerHTML = feedback;
|
document.body.querySelector('#profileData').innerHTML = feedback;
|
||||||
|
|
||||||
|
// Exit if no notations are available
|
||||||
|
if (keyData.notations.length == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Verify identity proofs
|
// Verify identity proofs
|
||||||
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];
|
||||||
|
|
Loading…
Reference in a new issue