diff --git a/src/resolver.ts b/src/resolver.ts index cf34dad..20090eb 100644 --- a/src/resolver.ts +++ b/src/resolver.ts @@ -34,7 +34,7 @@ export function getResolver(): Record { } const didDocumentJson = JSON.parse(didDocument[0]) - if (!JSON.parse(didDocument[0])?.verificationMethod) { + if (!didDocumentJson?.verificationMethod) { return { didDocument: didDocumentJson, didDocumentMetadata: {