@open-tender/cloud
Advanced tools
Comparing version 0.1.91 to 0.1.92
@@ -74,7 +74,4 @@ "use strict"; | ||
const { revenueCenter } = getState().order; | ||
console.log('revenueCenter', revenueCenter); | ||
dispatch((0, order_1.resetOrder)()); | ||
const { serviceType, requestedAt } = getState().groupOrder; | ||
console.log('serviceType', serviceType); | ||
console.log('requestedAt', requestedAt); | ||
dispatch((0, order_1.setMenuVars)({ revenueCenter, serviceType, requestedAt })); | ||
@@ -167,3 +164,3 @@ dispatch((0, order_1.setCart)([])); | ||
adjustGroupOrder: (state, action) => { | ||
state = Object.assign(Object.assign({}, state), action.payload); | ||
return Object.assign(Object.assign({}, state), action.payload); | ||
} | ||
@@ -170,0 +167,0 @@ }, |
@@ -246,3 +246,3 @@ "use strict"; | ||
updateOrder: (state, action) => { | ||
state = Object.assign(Object.assign({}, state), action.payload); | ||
return Object.assign(Object.assign({}, state), action.payload); | ||
}, | ||
@@ -275,5 +275,4 @@ checkout: state => state, | ||
setMenuVars: (state, action) => { | ||
console.log('action.payload', action.payload); | ||
const { revenueCenter } = action.payload; | ||
state = Object.assign(Object.assign(Object.assign({}, state), action.payload), { orderType: revenueCenter.revenue_center_type, isOutpost: revenueCenter.is_outpost }); | ||
return Object.assign(Object.assign(Object.assign({}, state), action.payload), { orderType: revenueCenter.revenue_center_type, isOutpost: revenueCenter.is_outpost }); | ||
}, | ||
@@ -280,0 +279,0 @@ setAddress: (state, action) => { |
@@ -69,7 +69,4 @@ import { __awaiter } from "tslib"; | ||
const { revenueCenter } = getState().order; | ||
console.log('revenueCenter', revenueCenter); | ||
dispatch(resetOrder()); | ||
const { serviceType, requestedAt } = getState().groupOrder; | ||
console.log('serviceType', serviceType); | ||
console.log('requestedAt', requestedAt); | ||
dispatch(setMenuVars({ revenueCenter, serviceType, requestedAt })); | ||
@@ -162,3 +159,3 @@ dispatch(setCart([])); | ||
adjustGroupOrder: (state, action) => { | ||
state = Object.assign(Object.assign({}, state), action.payload); | ||
return Object.assign(Object.assign({}, state), action.payload); | ||
} | ||
@@ -165,0 +162,0 @@ }, |
@@ -241,3 +241,3 @@ import { __awaiter } from "tslib"; | ||
updateOrder: (state, action) => { | ||
state = Object.assign(Object.assign({}, state), action.payload); | ||
return Object.assign(Object.assign({}, state), action.payload); | ||
}, | ||
@@ -270,5 +270,4 @@ checkout: state => state, | ||
setMenuVars: (state, action) => { | ||
console.log('action.payload', action.payload); | ||
const { revenueCenter } = action.payload; | ||
state = Object.assign(Object.assign(Object.assign({}, state), action.payload), { orderType: revenueCenter.revenue_center_type, isOutpost: revenueCenter.is_outpost }); | ||
return Object.assign(Object.assign(Object.assign({}, state), action.payload), { orderType: revenueCenter.revenue_center_type, isOutpost: revenueCenter.is_outpost }); | ||
}, | ||
@@ -275,0 +274,0 @@ setAddress: (state, action) => { |
{ | ||
"name": "@open-tender/cloud", | ||
"version": "0.1.91", | ||
"version": "0.1.92", | ||
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
911853
20616