File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/template-retail-react-app/app/pages/cart Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,10 @@ import {
8181import { useCurrentCustomer } from '@salesforce/retail-react-app/app/hooks/use-current-customer'
8282import UnavailableProductConfirmationModal from '@salesforce/retail-react-app/app/components/unavailable-product-confirmation-modal'
8383import { getUpdateBundleChildArray } from '@salesforce/retail-react-app/app/utils/product-utils'
84- import { isPickupShipment } from '@salesforce/retail-react-app/app/utils/shipment-utils'
84+ import {
85+ isPickupShipment ,
86+ groupShipmentsByDeliveryOption
87+ } from '@salesforce/retail-react-app/app/utils/shipment-utils'
8588import { useSelectedStore } from '@salesforce/retail-react-app/app/hooks/use-selected-store'
8689import { useMultiship } from '@salesforce/retail-react-app/app/hooks/use-multiship'
8790
@@ -378,7 +381,7 @@ const Cart = () => {
378381 }
379382
380383 // Don't assign methods until at least one delivery shipment has an address
381- const deliveryShipments = basket . shipments ?. filter ( ( s ) => ! isPickupShipment ( s ) ) || [ ]
384+ const { deliveryShipments} = groupShipmentsByDeliveryOption ( basket )
382385 const hasDeliveryWithAddress = deliveryShipments . some (
383386 ( s ) => s . shippingAddress ?. address1
384387 )
You can’t perform that action at this time.
0 commit comments