Skip to content

Commit

Permalink
fix: added validation by variable
Browse files Browse the repository at this point in the history
Signed-off-by: tipusinghaw <[email protected]>
  • Loading branch information
tipusinghaw committed Feb 8, 2024
1 parent 8cf0771 commit 18cb552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function getResolver(): Record<string, DIDResolver> {
}
const didDocumentJson = JSON.parse(didDocument[0])

if (!JSON.parse(didDocument[0])?.verificationMethod) {
if (!didDocumentJson?.verificationMethod) {
return {
didDocument: didDocumentJson,
didDocumentMetadata: {
Expand Down

0 comments on commit 18cb552

Please sign in to comment.