From 3bde6b8e8eee01dc005852f1fafa96d26c63d5b5 Mon Sep 17 00:00:00 2001 From: "A.G.J. Cate" Date: Fri, 1 Nov 2024 12:06:13 +0100 Subject: [PATCH] chore: fix get trust result --- packages/oid4vci-holder/src/agent/OID4VCIHolder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/oid4vci-holder/src/agent/OID4VCIHolder.ts b/packages/oid4vci-holder/src/agent/OID4VCIHolder.ts index 431645625..8c14a2af7 100644 --- a/packages/oid4vci-holder/src/agent/OID4VCIHolder.ts +++ b/packages/oid4vci-holder/src/agent/OID4VCIHolder.ts @@ -1033,7 +1033,7 @@ export class OID4VCIHolder implements IAgentPlugin { entityIdentifier, trustAnchors }) - .then((result) => !result || result.length === 0) + .then((result) => Array.isArray(result) && result.length > 0) } private async oid4vciHolderGetIssuerMetadata(args: GetIssuerMetadataArgs, context: RequiredContext): Promise {