Skip to content

Issuer details logic differs between the VerifiationCard and the CredentialCard sections #260

@jchartrand

Description

@jchartrand

The logic to decide what name, image, etc. to show for an issuer is different in VerificationCard.tsx and CredentialCard.tsx

It should likely be the same.

The difference seems to be that if an issuer has an entry in a registry then the CredentialCard only uses details from the registry, even if some of the details aren't in the registry, but are in the VC itself, like the issuer.image.id

The VerificationCard on the other hand does also prefer values from the registry, but will fall back to values in the VC itself if the registry doesn't have values for individual values, like the issuer.image.id

Can see it in action with this VC:

https://verifierplus.org/#verify?vc=https://digitalcredentials.github.io/vc-test-fixtures/verifiableCredentials/v1/ed25519/didKey/legacyRegistry-noStatus-noExpiry-issuerImageId.json

The issuer image, which comes from the issuer.image.id property in the VC is shown down in the registries section of the verification card but not up top in the 'Issuer' section of the credential card.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions