ublo-lib 1.31.8 → 1.31.9

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.
@@ -25,19 +25,14 @@ function setupConfig(lang, breadcrumb, cart = [], multipleVillages, hasLangPrefi
25
25
  const pageEsf = multipleVillages ? breadcrumb?.next?.path : breadcrumb?.path;
26
26
  const langPrefix = hasLangPrefix ? `/${lang}` : "";
27
27
  const pagePanier = langPrefix.concat(cart[0] ? cart[0].path : "/panier");
28
- window.pagePanier = pagePanier;
28
+ if (!cartChanged) {
29
+ window.pagePanier = pagePanier;
30
+ }
29
31
  window.pageEsf = pageEsf;
30
32
  window.currentLang = lang;
31
33
  window.analytics = Plausible.callback;
32
34
  window.channel = channel;
33
35
  window.cartChanged = cartChanged;
34
- console.log("boutiqueESF config", {
35
- pageEsf,
36
- pagePanier,
37
- lang,
38
- channel,
39
- cartChanged
40
- });
41
36
  }
42
37
  function closeAllDialogs(e) {
43
38
  const cart = e.target.closest("[onclick^='openBoutiqueESF(']");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.31.8",
3
+ "version": "1.31.9",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.8.3",
6
6
  "leaflet": "^1.9.1",