File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/mgt-components/src/components/mgt-login Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -242,10 +242,10 @@ export class MgtLogin extends MgtTemplatedTaskComponent {
242242
243243 const provider = Providers . globalProvider ;
244244 if ( provider ?. logout ) {
245- const activeAccount = provider . getActiveAccount ( ) ;
246245 await provider . logout ( ) ;
247246 this . userDetails = null ;
248247 if ( provider . isMultiAccountSupportedAndEnabled ) {
248+ const activeAccount = provider . getActiveAccount ( ) ;
249249 localStorage . removeItem ( activeAccount ?. id + this . _userDetailsKey ) ;
250250 }
251251 this . hideFlyout ( ) ;
@@ -726,7 +726,7 @@ export class MgtLogin extends MgtTemplatedTaskComponent {
726726 * @memberof MgtLogin
727727 */
728728 private readonly onClick = ( ) : void => {
729- if ( this . userDetails && this . _isFlyoutOpen ) {
729+ if ( this . userDetails && this . flyout . isOpen ) {
730730 this . hideFlyout ( ) ;
731731 } else if ( this . userDetails ) {
732732 this . showFlyout ( ) ;
You can’t perform that action at this time.
0 commit comments