@dreamcommerce/aurora 2.3.6 → 2.3.8-1

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.
@@ -22,7 +22,7 @@ const reducer = (state, action) => {
22
22
  case constants.FILTER_ITEMS: {
23
23
  const filteredItems = state.initialData.filter((item) => {
24
24
  var _a;
25
- return (_a = item[action.payload.filterKey]) === null || _a === void 0 ? void 0 : _a.includes(action.payload.searchValue);
25
+ return (_a = item[action.payload.filterKey]) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(action.payload.searchValue.toLowerCase());
26
26
  });
27
27
  return {
28
28
  ...state,
@@ -14,7 +14,7 @@ const reducer = (state, action) => {
14
14
  case FILTER_ITEMS: {
15
15
  const filteredItems = state.initialData.filter((item) => {
16
16
  var _a;
17
- return (_a = item[action.payload.filterKey]) === null || _a === void 0 ? void 0 : _a.includes(action.payload.searchValue);
17
+ return (_a = item[action.payload.filterKey]) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(action.payload.searchValue.toLowerCase());
18
18
  });
19
19
  return {
20
20
  ...state,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dreamcommerce/aurora",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "2.3.6",
5
+ "version": "2.3.8-1",
6
6
  "description": "aurora",
7
7
  "author": "k0ssak",
8
8
  "license": "MIT",