merchi_cart 0.0.2-m → 0.0.2-n

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.
@@ -6,11 +6,12 @@ export default function CartTabPanel(_a) {
6
6
  var _b = useSelector(function (s) { return s.stateCart; }), activeTab = _b.activeTab, tabs = _b.tabs;
7
7
  var classNameCartTabPanel = useCartContext().classNameCartTabPanel;
8
8
  var activeTabValues = tabs[activeTab];
9
+ console.log(activeTab, tabId, activeTabValues);
9
10
  var display = tabId === -1 && activeTab === -1
10
11
  ? 'block'
11
12
  : tabId === -2 && activeTab === -2
12
13
  ? 'block'
13
- : tabId === activeTabValues.tabId
14
+ : activeTabValues && tabId === activeTabValues.tabId
14
15
  ? 'block'
15
16
  : 'none';
16
17
  return (_jsx("div", { className: classNameCartTabPanel, style: { display: display }, children: children }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merchi_cart",
3
- "version": "0.0.2-m",
3
+ "version": "0.0.2-n",
4
4
  "description": "Merchi's cart",
5
5
  "main": "lib/index.js",
6
6
  "module": "src/index.tsx",