Skip to content

Commit

Permalink
chore: prefer verifiableCredential.name for getCredentialDisplayName
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Nov 4, 2024
1 parent 09c00b6 commit 36d5111
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export const getCredentialDisplayName = ({
}): string => {
let title: string | undefined = localeBranding?.alias ?? verifiableCredential.name ?? (!verifiableCredential.type ? 'unknown' : undefined)

if (verifiableCredential.type) {
if (!title && verifiableCredential.type) {
const types = asArray(verifiableCredential.type).filter(val => val !== 'VerifiableCredential')
if (types.length === 1) {
title = types[0]
Expand Down

0 comments on commit 36d5111

Please sign in to comment.