File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
packages/template-retail-react-app/app/pages/checkout-one-click/partials Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -230,16 +230,6 @@ export default function ShippingOptions() {
230230 shippingMethods ?. applicableShippingMethods ?. filter ( ( method ) => ! isPickupMethod ( method ) ) ||
231231 [ ]
232232
233- const hasApplicableMethods = Boolean ( filteredShippingMethods . length > 0 )
234- const isSelectedMethodValid =
235- hasApplicableMethods &&
236- Boolean (
237- selectedShippingMethod ?. id &&
238- shippingMethods . applicableShippingMethods ?. some (
239- ( m ) => m . id === selectedShippingMethod . id
240- )
241- )
242-
243233 const freeLabel = formatMessage ( {
244234 defaultMessage : 'Free' ,
245235 id : 'checkout_confirmation.label.free'
@@ -382,7 +372,7 @@ export default function ShippingOptions() {
382372
383373 { ! hasMultipleDeliveryShipments &&
384374 ! effectiveIsLoading &&
385- isSelectedMethodValid &&
375+ selectedShippingMethod &&
386376 selectedShippingAddress && (
387377 < SingleShipmentSummary
388378 selectedShippingMethod = { selectedShippingMethod }
You can’t perform that action at this time.
0 commit comments