@daffodil/cart 0.39.3 → 0.39.4
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.
- package/bundles/daffodil-cart-state.umd.js +2 -0
- package/bundles/daffodil-cart-state.umd.js.map +1 -1
- package/bundles/daffodil-cart-state.umd.min.js +1 -1
- package/bundles/daffodil-cart-state.umd.min.js.map +1 -1
- package/esm2015/state/reducers/cart-item-entities/cart-item-entities.reducer.js +3 -1
- package/fesm2015/daffodil-cart-state.js +2 -0
- package/fesm2015/daffodil-cart-state.js.map +1 -1
- package/package.json +5 -5
|
@@ -1105,6 +1105,8 @@
|
|
|
1105
1105
|
case exports.DaffCartItemActionTypes.CartItemUpdateAction:
|
|
1106
1106
|
case exports.DaffCartItemActionTypes.CartItemDeleteAction:
|
|
1107
1107
|
return adapter.upsertOne(Object.assign(Object.assign({}, state.entities[action.itemId]), { daffState: exports.DaffCartItemStateEnum.Mutating }), state);
|
|
1108
|
+
case exports.DaffCartActionTypes.CartCreateSuccessAction:
|
|
1109
|
+
return adapter.removeAll(state);
|
|
1108
1110
|
default:
|
|
1109
1111
|
return state;
|
|
1110
1112
|
}
|