diff --git a/static/scripts.js b/static/scripts.js index 51b0349..c2c7123 100644 --- a/static/scripts.js +++ b/static/scripts.js @@ -357,6 +357,8 @@ async function displayProfile(opts) { return; } + let primaryClaims + feedback = ""; if (userMail) { verifications.forEach((userId, i) => { @@ -380,6 +382,8 @@ async function displayProfile(opts) { userId = userId.sort((a,b) => (a.serviceproviderData.serviceprovider.name > b.serviceproviderData.serviceprovider.name) ? 1 : ((b.serviceproviderData.serviceprovider.name > a.serviceproviderData.serviceprovider.name) ? -1 : 0)); + primaryClaims = userId + userId.forEach((claim, i) => { const claimData = claim.serviceproviderData; if (!claimData.serviceprovider.name) { @@ -423,6 +427,14 @@ async function displayProfile(opts) { userId = userId.sort((a,b) => (a.serviceproviderData.serviceprovider.name > b.serviceproviderData.serviceprovider.name) ? 1 : ((b.serviceproviderData.serviceprovider.name > a.serviceproviderData.serviceprovider.name) ? -1 : 0)); + if (primaryClaims && primaryClaims.toString() == userId.toString()) { + feedback += `