diff --git a/packages/remote-server/src/web-did-doc-router.ts b/packages/remote-server/src/web-did-doc-router.ts index c7e5d8a24..9c86828ca 100644 --- a/packages/remote-server/src/web-did-doc-router.ts +++ b/packages/remote-server/src/web-did-doc-router.ts @@ -54,10 +54,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