@salesgenterp/ui-components 0.4.352 → 0.4.353

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.
package/dist/index.js CHANGED
@@ -6566,7 +6566,7 @@ var CardRow = function CardRow(_ref) {
6566
6566
  onClick: function onClick(e) {
6567
6567
  e.stopPropagation();
6568
6568
  if (loading) return;
6569
- if ((row === null || row === void 0 ? void 0 : row.availableQuantity) === 0) {
6569
+ if ((row === null || row === void 0 ? void 0 : row.availableQuantity) === 0 || (row === null || row === void 0 ? void 0 : row.quantity) === 1) {
6570
6570
  return handleRemoveProduct(row);
6571
6571
  }
6572
6572
  handleIncrementDecrement('decrement', _extends({}, row, {