Remove faulty claims before rendering the page

This commit is contained in:
Yarmo Mackenbach 2021-05-05 10:07:17 +02:00
parent ae422ca837
commit ee02b97ed5
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -136,6 +136,11 @@ const generateKeybaseProfile = async (username, fingerprint) => {
const processKeyData = (keyData) => {
keyData.users.forEach(user => {
// Remove faulty claims
user.claims = user.claims.filter(claim => {
return claim instanceof doip.Claim
})
// Match claims
user.claims.forEach(claim => {
claim.match()