From 782f64ace21c4710185fa80015b6435c8c37d088 Mon Sep 17 00:00:00 2001 From: Mircea Nistor Date: Mon, 30 May 2022 22:05:11 +0200 Subject: [PATCH] fix(remote-server): fix error when resolving local did:web (#905) --- packages/remote-server/src/web-did-doc-router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/remote-server/src/web-did-doc-router.ts b/packages/remote-server/src/web-did-doc-router.ts index 3489af0d5..cdb43743a 100644 --- a/packages/remote-server/src/web-did-doc-router.ts +++ b/packages/remote-server/src/web-did-doc-router.ts @@ -52,7 +52,7 @@ export const WebDidDocRouter = (options: WebDidDocRouterOptions): Router => { authentication: signingKeyIds, assertionMethod: signingKeyIds, keyAgreement: keyAgreementKeyIds, - service: typeof options.services === 'undefined' ? identifier.services : [...options.services, ...identifier.services], + service: [...(options?.services || []), ...(identifier?.services || [])], } return didDoc