diff --git a/idea/frontend/src/features/dns/types.ts b/idea/frontend/src/features/dns/types.ts index 26f6a9740b..cd1b017514 100644 --- a/idea/frontend/src/features/dns/types.ts +++ b/idea/frontend/src/features/dns/types.ts @@ -10,7 +10,7 @@ type Dns = { id: string; // same as 'name' at contract name: string; address: HexString; // same as 'program_id' at contract - admin: HexString | null; + admins: HexString[]; createdBy: HexString; createdAt: string; updatedAt: string; diff --git a/idea/frontend/src/features/dns/ui/dns-card/dns-card.tsx b/idea/frontend/src/features/dns/ui/dns-card/dns-card.tsx index 7441f7b04d..62bb75734a 100644 --- a/idea/frontend/src/features/dns/ui/dns-card/dns-card.tsx +++ b/idea/frontend/src/features/dns/ui/dns-card/dns-card.tsx @@ -14,8 +14,9 @@ type Props = { }; function DnsCard({ dns, onSuccess }: Props) { - const { name, address, updatedAt, createdAt, createdBy, admin } = dns; + const { name, address, updatedAt, createdAt, createdBy, admins } = dns; const { account } = useAccount(); + const admin = admins[0]; const isOwner = createdBy === account?.decodedAddress; const timePrefix = updatedAt === createdAt ? 'Created at:' : 'Updated at:';