From 5a6381546fa29fac421b5e5c42fc6978e68c437b Mon Sep 17 00:00:00 2001 From: Carlo Sala Date: Sun, 1 Jun 2025 12:30:36 +0200 Subject: [PATCH] fix: update to new people chain --- src/state/identity.state.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/state/identity.state.ts b/src/state/identity.state.ts index 3013f8d..48e45fe 100644 --- a/src/state/identity.state.ts +++ b/src/state/identity.state.ts @@ -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, })),