@open-tender/cloud 0.0.77 → 0.0.79

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.
@@ -253,8 +253,8 @@ const checkoutSlice = (0, toolkit_1.createSlice)({
253
253
  };
254
254
  state.loading = 'idle';
255
255
  })
256
- .addCase(exports.submitOrder.fulfilled, (state, action) => {
257
- state.completedOrder = action.payload;
256
+ .addCase(exports.submitOrder.fulfilled, (_, action) => {
257
+ return Object.assign(Object.assign({}, initialState), { completedOrder: action.payload });
258
258
  })
259
259
  .addCase(exports.submitOrder.pending, state => {
260
260
  state.loading = 'pending';
@@ -249,8 +249,8 @@ const checkoutSlice = createSlice({
249
249
  };
250
250
  state.loading = 'idle';
251
251
  })
252
- .addCase(submitOrder.fulfilled, (state, action) => {
253
- state.completedOrder = action.payload;
252
+ .addCase(submitOrder.fulfilled, (_, action) => {
253
+ return Object.assign(Object.assign({}, initialState), { completedOrder: action.payload });
254
254
  })
255
255
  .addCase(submitOrder.pending, state => {
256
256
  state.loading = 'pending';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/cloud",
3
- "version": "0.0.77",
3
+ "version": "0.0.79",
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",
@@ -56,6 +56,6 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@open-tender/types": "^0.0.91",
59
- "@open-tender/utils": "^0.0.31"
59
+ "@open-tender/utils": "^0.0.33"
60
60
  }
61
61
  }