@arcteryx/components-cart
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [5.1.1](http://bitbucket.org/arcteryx/arcteryx-js-helpers/compare/@arcteryx/components-cart@5.1.0...@arcteryx/components-cart@5.1.1) (2020-12-30) | ||
### Bug Fixes | ||
* TMS-742 object destructing not working for null values ([bae15f6](http://bitbucket.org/arcteryx/arcteryx-js-helpers/commits/bae15f6bd405e5310d7e731332f6e4c7a7f92794)) | ||
# [5.1.0](http://bitbucket.org/arcteryx/arcteryx-js-helpers/compare/@arcteryx/components-cart@5.0.15...@arcteryx/components-cart@5.1.0) (2020-12-30) | ||
@@ -8,0 +19,0 @@ |
@@ -1156,5 +1156,3 @@ 'use strict'; | ||
const NO_QUANTITY = 0; | ||
const { | ||
quantity = NO_QUANTITY | ||
} = cart; | ||
const quantity = cart.quantity || NO_QUANTITY; | ||
return /*#__PURE__*/React__default.createElement(Header, { | ||
@@ -1161,0 +1159,0 @@ isNarrow: isNarrow |
@@ -1148,5 +1148,3 @@ import React, { useContext } from 'react'; | ||
const NO_QUANTITY = 0; | ||
const { | ||
quantity = NO_QUANTITY | ||
} = cart; | ||
const quantity = cart.quantity || NO_QUANTITY; | ||
return /*#__PURE__*/React.createElement(Header, { | ||
@@ -1153,0 +1151,0 @@ isNarrow: isNarrow |
@@ -1155,5 +1155,3 @@ (function (global, factory) { | ||
const NO_QUANTITY = 0; | ||
const { | ||
quantity = NO_QUANTITY | ||
} = cart; | ||
const quantity = cart.quantity || NO_QUANTITY; | ||
return /*#__PURE__*/React__default.createElement(Header, { | ||
@@ -1160,0 +1158,0 @@ isNarrow: isNarrow |
{ | ||
"name": "@arcteryx/components-cart", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Arcteryx Cart", | ||
@@ -19,3 +19,3 @@ "source": "src/index.js", | ||
"license": "ISC", | ||
"gitHead": "e907390a52b979063676be45b4ffb41207c9dd1a", | ||
"gitHead": "47a1f36352a12f03c59261deb9c53289b9f644ff", | ||
"peerDependencies": { | ||
@@ -22,0 +22,0 @@ "@arcteryx/components-contexts": "^1.1.0", |
@@ -59,3 +59,3 @@ import React from "react"; | ||
const NO_QUANTITY = 0; | ||
const { quantity = NO_QUANTITY } = cart; | ||
const quantity = cart.quantity || NO_QUANTITY; | ||
@@ -62,0 +62,0 @@ return ( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
494405
5960