Skip to content

Commit

Permalink
fix: only add render method if its defined
Browse files Browse the repository at this point in the history
  • Loading branch information
phanshiyu committed May 9, 2024
1 parent f2235d4 commit b1b3044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/4.0/documentBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class DocumentBuilder<Props extends DocumentProps | DocumentProps[]> {
issuer,
name,
credentialSubject: content,
renderMethod,
...(renderMethod && { renderMethod }),
...(attachments && { attachments }),
...(credentialStatus && { credentialStatus }),
} satisfies V4Document)
Expand Down

0 comments on commit b1b3044

Please sign in to comment.