diff --git a/desktop/src/features/identity-archive/InstancesSheet.tsx b/desktop/src/features/identity-archive/InstancesSheet.tsx index cddecd5de..d56796850 100644 --- a/desktop/src/features/identity-archive/InstancesSheet.tsx +++ b/desktop/src/features/identity-archive/InstancesSheet.tsx @@ -2,6 +2,7 @@ import { Archive, Loader2, Server } from "lucide-react"; import { useOwnedAgentInventoryQuery } from "./hooks"; import { ProfileAvatar } from "@/features/profile/ui/ProfileAvatar"; +import { truncatePubkey } from "@/shared/lib/pubkey"; import { Badge } from "@/shared/ui/badge"; import { Button } from "@/shared/ui/button"; import { @@ -22,7 +23,7 @@ type InstanceRowProps = { }; function InstanceRow({ instance }: InstanceRowProps) { - const label = instance.displayName ?? `${instance.pubkey.slice(0, 16)}…`; + const label = instance.displayName ?? truncatePubkey(instance.pubkey); const isArchived = instance.archiveState.isArchived; return ( @@ -45,7 +46,7 @@ function InstanceRow({ instance }: InstanceRowProps) {

{label}

- {instance.pubkey.slice(0, 24)}… + {truncatePubkey(instance.pubkey)}

{isArchived === true ? (