diff --git a/.changeset/fast-cats-scream.md b/.changeset/fast-cats-scream.md new file mode 100644 index 000000000..55808b573 --- /dev/null +++ b/.changeset/fast-cats-scream.md @@ -0,0 +1,5 @@ +--- +"@blockchain-lab-um/dapp": patch +--- + +Format addresses and DIDs uniformly. diff --git a/packages/dapp/src/app/[locale]/app/(public)/share-presentation/[id]/CredentialPanel.tsx b/packages/dapp/src/app/[locale]/app/(public)/share-presentation/[id]/CredentialPanel.tsx index 51597fbbc..b06f3923e 100644 --- a/packages/dapp/src/app/[locale]/app/(public)/share-presentation/[id]/CredentialPanel.tsx +++ b/packages/dapp/src/app/[locale]/app/(public)/share-presentation/[id]/CredentialPanel.tsx @@ -14,7 +14,7 @@ import { Fragment, useMemo, useState } from 'react'; import { DIDDisplay } from '@/components/DIDDisplay'; import JsonModal from '@/components/JsonModal'; -import { getFirstWord } from '@/utils/format'; +import { formatAddress, getFirstWord } from '@/utils/format'; import { convertTypes, copyToClipboard } from '@/utils/string'; import { ImageLink } from '@/components/ImageLink'; @@ -40,7 +40,7 @@ const AddressDisplay = ({ address }: { address: string }) => { rel="noopener noreferrer" className="text-md animated-transition dark:text-navy-blue-300 cursor-pointer font-normal text-gray-700 underline underline-offset-2" > - {`${address.slice(0, 8)}...${address.slice(-8)}`} + {formatAddress(address)}