ublo-lib 1.47.18 → 1.47.19

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.
@@ -1 +1 @@
1
- {"version":3,"file":"cart-preview.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-preview/cart-preview.js"],"names":[],"mappings":";AAYA;;;;;;4CAmFC"}
1
+ {"version":3,"file":"cart-preview.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-preview/cart-preview.js"],"names":[],"mappings":";AAYA;;;;;;4CA6FC"}
@@ -30,6 +30,9 @@ const CartPreview = ({ lang, visible, className, pillClassName, forcePillVisibil
30
30
  }, [ubloLang, resort]);
31
31
  if (!cart && !forcePillVisibility)
32
32
  return null;
33
+ if (!cart) {
34
+ return (_jsx(CartPill, { className: pillClassName, count: count, forcePillVisibility: forcePillVisibility }));
35
+ }
33
36
  const { orders: bareOrders, price } = cart.cart;
34
37
  const orders = Utils.getOrders(bareOrders);
35
38
  const preventClick = (e) => e.preventDefault();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.47.18",
3
+ "version": "1.47.19",
4
4
  "peerDependencies": {
5
5
  "classnames": "^2.5.1",
6
6
  "dt-design-system": "^3.12.0",