@microsoft/mgt-element
Advanced tools
Comparing version 2.2.0-preview.3bf867f to 2.2.0-preview.3e7211a
@@ -224,8 +224,11 @@ /** | ||
const provider = Providers.globalProvider; | ||
if (provider.state == ProviderState.SignedOut) { | ||
if (!provider) { | ||
return Promise.resolve(); | ||
} | ||
if (provider.state === ProviderState.SignedOut) { | ||
// Signed out, clear the component state | ||
this.clearState(); | ||
return Promise.resolve(); | ||
return; | ||
} | ||
else if (provider.state == ProviderState.Loading) { | ||
else if (provider.state === ProviderState.Loading) { | ||
// The provider state is indeterminate. Do nothing. | ||
@@ -232,0 +235,0 @@ return Promise.resolve(); |
{ | ||
"name": "@microsoft/mgt-element", | ||
"version": "2.2.0-preview.3bf867f", | ||
"version": "2.2.0-preview.3e7211a", | ||
"description": "Microsoft Graph Toolkit base classes", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/microsoftgraph/microsoft-graph-toolkit", |
@@ -231,7 +231,11 @@ /** | ||
if (provider.state == ProviderState.SignedOut) { | ||
if (!provider) { | ||
return Promise.resolve(); | ||
} | ||
if (provider.state === ProviderState.SignedOut) { | ||
// Signed out, clear the component state | ||
this.clearState(); | ||
return Promise.resolve(); | ||
} else if (provider.state == ProviderState.Loading) { | ||
return; | ||
} else if (provider.state === ProviderState.Loading) { | ||
// The provider state is indeterminate. Do nothing. | ||
@@ -238,0 +242,0 @@ return Promise.resolve(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
785651
6900