@daffodil/cart 0.58.10 → 0.59.0

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.
@@ -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, selectCartGrandTotal, (isCartEmpty, hasBillingAddress, hasShippingAddress, hasShippingMethod, hasPaymentMethod, grandTotal) => !isCartEmpty
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
- && (grandTotal === 0 || hasPaymentMethod));
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
  }