@saasquatch/component-environment 1.0.2-2 → 1.0.2-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -580,7 +580,7 @@ function setUserIdentity(identity) {
|
|
|
580
580
|
}
|
|
581
581
|
if (identity && getEnvironmentSDK().type === "SquatchPortal") {
|
|
582
582
|
localStorage.setItem(USER_CONTEXT_NAME, JSON.stringify(identity));
|
|
583
|
-
} else if (!identity) {
|
|
583
|
+
} else if (!identity && getEnvironmentSDK().type === "SquatchPortal") {
|
|
584
584
|
localStorage.removeItem(USER_CONTEXT_NAME);
|
|
585
585
|
}
|
|
586
586
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -531,7 +531,7 @@ function setUserIdentity(identity) {
|
|
|
531
531
|
}
|
|
532
532
|
if (identity && getEnvironmentSDK().type === "SquatchPortal") {
|
|
533
533
|
localStorage.setItem(USER_CONTEXT_NAME, JSON.stringify(identity));
|
|
534
|
-
} else if (!identity) {
|
|
534
|
+
} else if (!identity && getEnvironmentSDK().type === "SquatchPortal") {
|
|
535
535
|
localStorage.removeItem(USER_CONTEXT_NAME);
|
|
536
536
|
}
|
|
537
537
|
}
|