From 8b901ce1b741170171a0b1fd46ca017fda59a815 Mon Sep 17 00:00:00 2001 From: addison Date: Tue, 28 Dec 2021 16:08:46 -0500 Subject: [PATCH] [bug] Use Account constructor when calling addAccount --- common/src/services/auth.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/services/auth.service.ts b/common/src/services/auth.service.ts index 3d7506d3..edad7848 100644 --- a/common/src/services/auth.service.ts +++ b/common/src/services/auth.service.ts @@ -545,7 +545,7 @@ export class AuthService implements AuthServiceAbstraction { const accountInformation = await this.tokenService.decodeToken(tokenResponse.accessToken); await this.stateService.addAccount( - new Account({ + new Account(new Account({ profile: { ...new AccountProfile(), ...{ @@ -570,7 +570,7 @@ export class AuthService implements AuthServiceAbstraction { refreshToken: tokenResponse.refreshToken, }, }, - }) + })) ); if (tokenResponse.twoFactorToken != null) {