@saasquatch/component-environment 1.0.4 → 1.0.5
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 +2 -4
- package/dist/index.mjs +2 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -459,10 +459,8 @@ var userContextListenerForLocale = new import_dom_context2.ContextListener({
|
|
|
459
459
|
if (next) {
|
|
460
460
|
debug5("User context changed, refetching locale");
|
|
461
461
|
const locale = await fetchLocale();
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
newLocale = locale || defaultLocale;
|
|
465
|
-
}
|
|
462
|
+
debug5(`New value fetched from GraphQL [${locale}]`);
|
|
463
|
+
newLocale = locale || defaultLocale;
|
|
466
464
|
} else {
|
|
467
465
|
newLocale = defaultLocale;
|
|
468
466
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -410,10 +410,8 @@ var userContextListenerForLocale = new ContextListener({
|
|
|
410
410
|
if (next) {
|
|
411
411
|
debug5("User context changed, refetching locale");
|
|
412
412
|
const locale = await fetchLocale();
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
newLocale = locale || defaultLocale;
|
|
416
|
-
}
|
|
413
|
+
debug5(`New value fetched from GraphQL [${locale}]`);
|
|
414
|
+
newLocale = locale || defaultLocale;
|
|
417
415
|
} else {
|
|
418
416
|
newLocale = defaultLocale;
|
|
419
417
|
}
|