mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
Remove faulty claims before rendering the page
This commit is contained in:
parent
ae422ca837
commit
ee02b97ed5
1 changed files with 5 additions and 0 deletions
|
@ -136,6 +136,11 @@ const generateKeybaseProfile = async (username, fingerprint) => {
|
||||||
|
|
||||||
const processKeyData = (keyData) => {
|
const processKeyData = (keyData) => {
|
||||||
keyData.users.forEach(user => {
|
keyData.users.forEach(user => {
|
||||||
|
// Remove faulty claims
|
||||||
|
user.claims = user.claims.filter(claim => {
|
||||||
|
return claim instanceof doip.Claim
|
||||||
|
})
|
||||||
|
|
||||||
// Match claims
|
// Match claims
|
||||||
user.claims.forEach(claim => {
|
user.claims.forEach(claim => {
|
||||||
claim.match()
|
claim.match()
|
||||||
|
|
Loading…
Reference in a new issue