From b1b3044994fbb741f69506ae73100127b7692d7b Mon Sep 17 00:00:00 2001 From: Phan Shi Yu Date: Thu, 9 May 2024 12:57:07 +0800 Subject: [PATCH] fix: only add render method if its defined --- src/4.0/documentBuilder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/4.0/documentBuilder.ts b/src/4.0/documentBuilder.ts index bff91412..a95e0fab 100644 --- a/src/4.0/documentBuilder.ts +++ b/src/4.0/documentBuilder.ts @@ -130,7 +130,7 @@ export class DocumentBuilder { issuer, name, credentialSubject: content, - renderMethod, + ...(renderMethod && { renderMethod }), ...(attachments && { attachments }), ...(credentialStatus && { credentialStatus }), } satisfies V4Document)