@open-tender/cloud 0.1.90 → 0.1.92
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.
|
@@ -160,7 +160,7 @@ const groupOrderSlice = (0, toolkit_1.createSlice)({
|
|
|
160
160
|
reducers: {
|
|
161
161
|
resetGroupOrder: () => initialState,
|
|
162
162
|
adjustGroupOrder: (state, action) => {
|
|
163
|
-
|
|
163
|
+
return Object.assign(Object.assign({}, state), action.payload);
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
166
|
extraReducers: builder => {
|
package/dist/cjs/slices/order.js
CHANGED
|
@@ -243,7 +243,7 @@ const orderSlice = (0, toolkit_1.createSlice)({
|
|
|
243
243
|
state.alert = null;
|
|
244
244
|
},
|
|
245
245
|
updateOrder: (state, action) => {
|
|
246
|
-
|
|
246
|
+
return Object.assign(Object.assign({}, state), action.payload);
|
|
247
247
|
},
|
|
248
248
|
checkout: state => state,
|
|
249
249
|
setAlert: (state, action) => {
|
|
@@ -272,7 +272,7 @@ const orderSlice = (0, toolkit_1.createSlice)({
|
|
|
272
272
|
},
|
|
273
273
|
setMenuVars: (state, action) => {
|
|
274
274
|
const { revenueCenter } = action.payload;
|
|
275
|
-
|
|
275
|
+
return Object.assign(Object.assign(Object.assign({}, state), action.payload), { orderType: revenueCenter.revenue_center_type, isOutpost: revenueCenter.is_outpost });
|
|
276
276
|
},
|
|
277
277
|
setAddress: (state, action) => {
|
|
278
278
|
state.address = action.payload;
|
|
@@ -155,7 +155,7 @@ const groupOrderSlice = createSlice({
|
|
|
155
155
|
reducers: {
|
|
156
156
|
resetGroupOrder: () => initialState,
|
|
157
157
|
adjustGroupOrder: (state, action) => {
|
|
158
|
-
|
|
158
|
+
return Object.assign(Object.assign({}, state), action.payload);
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
161
|
extraReducers: builder => {
|
package/dist/esm/slices/order.js
CHANGED
|
@@ -238,7 +238,7 @@ const orderSlice = createSlice({
|
|
|
238
238
|
state.alert = null;
|
|
239
239
|
},
|
|
240
240
|
updateOrder: (state, action) => {
|
|
241
|
-
|
|
241
|
+
return Object.assign(Object.assign({}, state), action.payload);
|
|
242
242
|
},
|
|
243
243
|
checkout: state => state,
|
|
244
244
|
setAlert: (state, action) => {
|
|
@@ -267,7 +267,7 @@ const orderSlice = createSlice({
|
|
|
267
267
|
},
|
|
268
268
|
setMenuVars: (state, action) => {
|
|
269
269
|
const { revenueCenter } = action.payload;
|
|
270
|
-
|
|
270
|
+
return Object.assign(Object.assign(Object.assign({}, state), action.payload), { orderType: revenueCenter.revenue_center_type, isOutpost: revenueCenter.is_outpost });
|
|
271
271
|
},
|
|
272
272
|
setAddress: (state, action) => {
|
|
273
273
|
state.address = action.payload;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/cloud",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.92",
|
|
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",
|