From 445ac30f9eaf9631546aa95f6e804b2e96c3775d Mon Sep 17 00:00:00 2001 From: addison Date: Thu, 18 Nov 2021 16:54:01 -0500 Subject: [PATCH] [chore] Update account refrences to match recent jslib restructuring --- src/app/app.component.ts | 6 +++--- src/app/layout/account-switcher.component.html | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index d3872a19..6fc10beb 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -354,14 +354,14 @@ export class AppComponent implements OnInit { const accounts: { [userId: string]: any } = {}; for (const i in stateAccounts) { if (i != null) { - const userId = stateAccounts[i].userId; + const userId = stateAccounts[i].profile.userId; accounts[userId] = { isAuthenticated: await this.stateService.getIsAuthenticated({ userId: userId, }), isLocked: await this.vaultTimeoutService.isLocked(userId), - email: stateAccounts[i].email, - userId: stateAccounts[i].userId, + email: stateAccounts[i].profile.email, + userId: stateAccounts[i].profile.userId, }; } } diff --git a/src/app/layout/account-switcher.component.html b/src/app/layout/account-switcher.component.html index be9cb7c5..4528f61f 100644 --- a/src/app/layout/account-switcher.component.html +++ b/src/app/layout/account-switcher.component.html @@ -7,11 +7,11 @@