@daffodil/cart 0.58.10 → 0.59.1
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/driver/in-memory/package.json +1 -10
- package/driver/magento/package.json +1 -10
- package/driver/magento/testing/package.json +1 -10
- package/driver/package.json +1 -10
- package/driver/testing/package.json +1 -10
- package/esm2020/state/reducers/cart-payment/payment.reducer.mjs +2 -2
- package/esm2020/state/selectors/cart/cart.selector.mjs +3 -3
- package/fesm2015/daffodil-cart-state.mjs +3 -3
- package/fesm2015/daffodil-cart-state.mjs.map +1 -1
- package/fesm2020/daffodil-cart-state.mjs +3 -3
- package/fesm2020/daffodil-cart-state.mjs.map +1 -1
- package/package.json +1 -137
- package/routing/package.json +1 -10
- package/state/package.json +1 -10
- package/state/testing/package.json +1 -10
- package/testing/package.json +1 -10
|
@@ -2155,11 +2155,11 @@ const createCartSelectors$1 = () => {
|
|
|
2155
2155
|
const selectHasShippingAddress = createSelector(selectCartShippingAddress, shippingAddress => !!shippingAddress);
|
|
2156
2156
|
const selectHasShippingMethod = createSelector(selectCartShippingInformation, shippingMethod => !!shippingMethod);
|
|
2157
2157
|
const selectHasPaymentMethod = createSelector(selectCartPayment, paymentMethod => !!paymentMethod && paymentMethod.method !== '');
|
|
2158
|
-
const selectCanPlaceOrder = createSelector(selectIsCartEmpty, selectHasBillingAddress, selectHasShippingAddress, selectHasShippingMethod, selectHasPaymentMethod,
|
|
2158
|
+
const selectCanPlaceOrder = createSelector(selectIsCartEmpty, selectHasBillingAddress, selectHasShippingAddress, selectHasShippingMethod, selectHasPaymentMethod, (isCartEmpty, hasBillingAddress, hasShippingAddress, hasShippingMethod, hasPaymentMethod) => !isCartEmpty
|
|
2159
2159
|
&& hasBillingAddress
|
|
2160
2160
|
&& hasShippingAddress
|
|
2161
2161
|
&& hasShippingMethod
|
|
2162
|
-
&&
|
|
2162
|
+
&& hasPaymentMethod);
|
|
2163
2163
|
return {
|
|
2164
2164
|
selectCartState,
|
|
2165
2165
|
selectCartValue,
|
|
@@ -2656,7 +2656,7 @@ const daffCartPaymentReducer = (state = daffPaymentInitialState, action) => {
|
|
|
2656
2656
|
return adapter.tokenGenerated(state);
|
|
2657
2657
|
case DaffCartPaymentActionTypes.CartPaymentUpdateFailureAction:
|
|
2658
2658
|
case DaffCartPaymentActionTypes.CartPaymentUpdateWithBillingFailureAction:
|
|
2659
|
-
return adapter.storeError(action.payload, state);
|
|
2659
|
+
return adapter.storeError([action.payload], state);
|
|
2660
2660
|
default:
|
|
2661
2661
|
return state;
|
|
2662
2662
|
}
|