@open-tender/store 1.1.278 → 1.1.279

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.
@@ -531,9 +531,10 @@ var checkoutSlice = (0, toolkit_1.createSlice)({
531
531
  }
532
532
  else {
533
533
  state.discounts = state.discounts.filter(function (item) {
534
- return item.id !== id &&
535
- item.index !== undefined &&
536
- item.index !== discountIndex;
534
+ return item.id !== id ||
535
+ (item.id === id &&
536
+ item.index !== undefined &&
537
+ item.index !== discountIndex);
537
538
  });
538
539
  }
539
540
  },
@@ -527,9 +527,10 @@ var checkoutSlice = createSlice({
527
527
  }
528
528
  else {
529
529
  state.discounts = state.discounts.filter(function (item) {
530
- return item.id !== id &&
531
- item.index !== undefined &&
532
- item.index !== discountIndex;
530
+ return item.id !== id ||
531
+ (item.id === id &&
532
+ item.index !== undefined &&
533
+ item.index !== discountIndex);
533
534
  });
534
535
  }
535
536
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "1.1.278",
3
+ "version": "1.1.279",
4
4
  "description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",