From 43efb4da44c8920d66cd5257a5badea79e7e3f7a Mon Sep 17 00:00:00 2001 From: "A.G.J. Cate" Date: Thu, 15 Feb 2024 09:59:28 +0100 Subject: [PATCH] chore: code cleanup --- packages/client/lib/OpenID4VCIClient.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/client/lib/OpenID4VCIClient.ts b/packages/client/lib/OpenID4VCIClient.ts index af01c9e2..eb956cf3 100644 --- a/packages/client/lib/OpenID4VCIClient.ts +++ b/packages/client/lib/OpenID4VCIClient.ts @@ -100,10 +100,7 @@ export class OpenID4VCIClient { } // Running syncAuthorizationRequestOpts later as it is using the state if (!this._state.authorizationRequestOpts) { - this._state = { - ...this._state, - authorizationRequestOpts: this.syncAuthorizationRequestOpts(authorizationRequest), - } + this._state.authorizationRequestOpts = this.syncAuthorizationRequestOpts(authorizationRequest) } debug(`Authorization req options: ${JSON.stringify(this._state.authorizationRequestOpts, null, 2)}`); }