ublo-lib 1.19.11 → 1.19.12

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.
@@ -16,6 +16,14 @@ export const MseM = ({
16
16
  cartId
17
17
  }) => {
18
18
  const hoteId = getBusinessProvider();
19
+ console.log("MseM", {
20
+ event,
21
+ payment_type,
22
+ execcode,
23
+ items,
24
+ orderId,
25
+ cartId
26
+ });
19
27
  let name = EVENT_NAMES[event];
20
28
  switch (event) {
21
29
  case "view_item":
@@ -116,7 +124,7 @@ export const MseM = ({
116
124
  const PURCHASE_ATTEMPTS_STORAGE_KEY = "purchase_attempts";
117
125
  function getPurchaseAttempts() {
118
126
  try {
119
- return JSON.parse(window.localStorage.getItem(PURCHASE_ATTEMPTS_STORAGE_KEY));
127
+ return JSON.parse(window.localStorage.getItem(PURCHASE_ATTEMPTS_STORAGE_KEY) || "{}");
120
128
  } catch (e) {
121
129
  return {};
122
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.19.11",
3
+ "version": "1.19.12",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.1.5",
6
6
  "leaflet": "^1.9.1",