Skip to content

Commit 0bad7e5

Browse files
authored
fix: msal setActiveAccount error (#3017)
1 parent eec74d0 commit 0bad7e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/providers/mgt-msal2-provider/src/Msal2Provider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,8 @@ export class Msal2Provider extends IProvider {
511511
// exit early if the account is already active and stored
512512
if (
513513
storedAccount &&
514+
accountToSet &&
515+
activeAccount &&
514516
storedAccount.homeAccountId === accountToSet.homeAccountId &&
515517
activeAccount.homeAccountId === accountToSet.homeAccountId
516518
) {

0 commit comments

Comments
 (0)