@open-tender/store 1.0.17 → 1.0.18

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.
@@ -255,7 +255,7 @@ exports.identifyCustomer = (0, toolkit_1.createAsyncThunk)(CheckoutActionType.Id
255
255
  var msg = "".concat(i.name, " discount applied!");
256
256
  dispatch((0, notifications_1.showNotification)(msg));
257
257
  });
258
- if (!(points && points > 0)) return [3 /*break*/, 3];
258
+ if (!(points && parseInt(points) > 0)) return [3 /*break*/, 3];
259
259
  dispatch((0, exports.setPendingDiscounts)(true));
260
260
  return [4 /*yield*/, dispatch((0, exports.validatePosOrder)())];
261
261
  case 2:
@@ -251,7 +251,7 @@ export var identifyCustomer = createAsyncThunk(CheckoutActionType.IdentifyCustom
251
251
  var msg = "".concat(i.name, " discount applied!");
252
252
  dispatch(showNotification(msg));
253
253
  });
254
- if (!(points && points > 0)) return [3 /*break*/, 3];
254
+ if (!(points && parseInt(points) > 0)) return [3 /*break*/, 3];
255
255
  dispatch(setPendingDiscounts(true));
256
256
  return [4 /*yield*/, dispatch(validatePosOrder())];
257
257
  case 2:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
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",
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@emotion/react": "^11.11.1",
61
- "@open-tender/types": "^0.4.25",
61
+ "@open-tender/types": "^0.4.27",
62
62
  "@open-tender/ui": "^0.1.21",
63
63
  "@open-tender/utils": "^0.4.9",
64
64
  "@reduxjs/toolkit": "^2.0.1",