fix: update to new people chain

This commit is contained in:
Carlo Sala
2025-06-01 12:30:36 +02:00
parent acc98e8226
commit 5a6381546f
+2 -2
View File
@@ -58,11 +58,11 @@ export const getAddressName = async (
if (!id) return null
}
const displayName = readIdentityData(id[0].info.display)?.asText()
const displayName = readIdentityData(id.info.display)?.asText()
return displayName
? {
displayName: `${displayName}${subIdStr}`,
judgments: id[0].judgements.map(([registrar, judgement]) => ({
judgments: id.judgements.map(([registrar, judgement]) => ({
registrar,
judgement: judgement.type,
})),