@open-tender/cloud 0.5.39 → 0.5.40

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.
@@ -64,6 +64,6 @@ const customerOrdersSlice = (0, toolkit_1.createSlice)({
64
64
  _a = customerOrdersSlice.actions, exports.resetCustomerOrders = _a.resetCustomerOrders, exports.resetCustomerOrdersError = _a.resetCustomerOrdersError, exports.setCustomerOrders = _a.setCustomerOrders;
65
65
  const selectCustomerOrders = (state) => state.customer.orders;
66
66
  exports.selectCustomerOrders = selectCustomerOrders;
67
- const selectHasOrders = (state) => state.customer.orders.entities.length > 0;
67
+ const selectHasOrders = (state) => { var _a; return ((_a = state.customer.orders.entities) === null || _a === void 0 ? void 0 : _a.length) > 0; };
68
68
  exports.selectHasOrders = selectHasOrders;
69
69
  exports.customerOrdersReducer = customerOrdersSlice.reducer;
@@ -59,5 +59,5 @@ const customerOrdersSlice = createSlice({
59
59
  });
60
60
  export const { resetCustomerOrders, resetCustomerOrdersError, setCustomerOrders } = customerOrdersSlice.actions;
61
61
  export const selectCustomerOrders = (state) => state.customer.orders;
62
- export const selectHasOrders = (state) => state.customer.orders.entities.length > 0;
62
+ export const selectHasOrders = (state) => { var _a; return ((_a = state.customer.orders.entities) === null || _a === void 0 ? void 0 : _a.length) > 0; };
63
63
  export const customerOrdersReducer = customerOrdersSlice.reducer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/cloud",
3
- "version": "0.5.39",
3
+ "version": "0.5.40",
4
4
  "description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",