forked from Mirrors/doipjs
Fix handling users without selfCertifications
This commit is contained in:
parent
47e538770c
commit
32c01756d3
1 changed files with 11 additions and 7 deletions
|
@ -159,6 +159,7 @@ const process = (publicKey) => {
|
|||
},
|
||||
}
|
||||
|
||||
if ('selfCertifications' in user && user.selfCertifications.length >= 0) {
|
||||
const notations = user.selfCertifications[0].rawNotations
|
||||
usersOutput[i].notations = notations.map(
|
||||
({ name, value, humanReadable }) => {
|
||||
|
@ -167,6 +168,9 @@ const process = (publicKey) => {
|
|||
}
|
||||
}
|
||||
)
|
||||
} else {
|
||||
usersOutput[i].notations = []
|
||||
}
|
||||
})
|
||||
|
||||
resolve({
|
||||
|
|
Loading…
Reference in a new issue