Skip to content

Commit a24dc1d

Browse files
committed
shipping options fix
1 parent 33de2be commit a24dc1d

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

packages/template-retail-react-app/app/pages/checkout-one-click/partials/one-click-shipping-options.jsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff 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}

0 commit comments

Comments
 (0)